mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
remove unused method
This commit is contained in:
parent
bb332fecf7
commit
2d044e1324
@ -273,14 +273,6 @@ class _Config(object):
|
|||||||
def validate(self, valid_config_sections):
|
def validate(self, valid_config_sections):
|
||||||
configutil.validate_config(self._config_fname, self.config, valid_config_sections)
|
configutil.validate_config(self._config_fname, self.config, valid_config_sections)
|
||||||
|
|
||||||
try:
|
|
||||||
fileutil.write(fn, value, mode)
|
|
||||||
except EnvironmentError:
|
|
||||||
log.err(
|
|
||||||
Failure(),
|
|
||||||
"Unable to write config file '{}'".format(fn),
|
|
||||||
)
|
|
||||||
|
|
||||||
def write_config_file(self, name, value, mode="w"):
|
def write_config_file(self, name, value, mode="w"):
|
||||||
"""
|
"""
|
||||||
writes the given 'value' into a file called 'name' in the config
|
writes the given 'value' into a file called 'name' in the config
|
||||||
@ -289,9 +281,11 @@ class _Config(object):
|
|||||||
fn = os.path.join(self._basedir, name)
|
fn = os.path.join(self._basedir, name)
|
||||||
try:
|
try:
|
||||||
fileutil.write(fn, value, mode)
|
fileutil.write(fn, value, mode)
|
||||||
except EnvironmentError as e:
|
except EnvironmentError:
|
||||||
log.msg("Unable to write config file '{}'".format(fn))
|
log.err(
|
||||||
log.err(e)
|
Failure(),
|
||||||
|
"Unable to write config file '{}'".format(fn),
|
||||||
|
)
|
||||||
|
|
||||||
def get_config(self, section, option, default=_None, boolean=False):
|
def get_config(self, section, option, default=_None, boolean=False):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user