mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-20 15:52:16 +03:00
The last PR break the compatibilty with Python 2
This commit is contained in:
parent
5330d03077
commit
f22c3d4f34
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user