The last PR break the compatibilty with Python 2

This commit is contained in:
nicolargo 2021-01-10 16:33:07 +01:00
parent 5330d03077
commit f22c3d4f34

View File

@ -107,7 +107,11 @@ class Config(object):
# Re patern for optimize research of `foo`
self.re_pattern = re.compile(r'(\`.+?\`)')
self.parser = ConfigParser(interpolation=None)
try:
self.parser = ConfigParser(interpolation=None)
except TypeError:
self.parser = ConfigParser()
self.read()
def config_file_paths(self):