From f22c3d4f34044cb2677575430fed4f2e069367bc Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 10 Jan 2021 16:33:07 +0100 Subject: [PATCH] The last PR break the compatibilty with Python 2 --- glances/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glances/config.py b/glances/config.py index 7c79958d..e131ad7e 100644 --- a/glances/config.py +++ b/glances/config.py @@ -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):