remove unused method

This commit is contained in:
meejah 2018-01-31 15:28:47 -07:00
parent bb332fecf7
commit 2d044e1324

View File

@ -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: