提交 ca3695ca 编写于 作者: N nicolargo

Correct Flake8 issue for config.py file

上级 15ba40f4
......@@ -111,7 +111,7 @@ class Config(object):
self.parser = ConfigParser(interpolation=None)
except TypeError:
self.parser = ConfigParser()
self.read()
def config_file_paths(self):
......@@ -157,6 +157,10 @@ class Config(object):
self._loaded_config_file = config_file
break
# Set the default values for section not configured
self.sections_set_default()
def sections_set_default(self):
# Globals
if not self.parser.has_section('global'):
self.parser.add_section('global')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册