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):
|
||||
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"):
|
||||
"""
|
||||
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)
|
||||
try:
|
||||
fileutil.write(fn, value, mode)
|
||||
except EnvironmentError as e:
|
||||
log.msg("Unable to write config file '{}'".format(fn))
|
||||
log.err(e)
|
||||
except EnvironmentError:
|
||||
log.err(
|
||||
Failure(),
|
||||
"Unable to write config file '{}'".format(fn),
|
||||
)
|
||||
|
||||
def get_config(self, section, option, default=_None, boolean=False):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user