From 2c0858f19b399b8c195ca6c09c40e29dc9747898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 18:20:07 +0200 Subject: [PATCH] CustomConfig.py Removed extra characters I removed these extra characters. --- offlineimap/CustomConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/CustomConfig.py b/offlineimap/CustomConfig.py index 47a5a41..f4af64a 100644 --- a/offlineimap/CustomConfig.py +++ b/offlineimap/CustomConfig.py @@ -117,7 +117,7 @@ class CustomConfigParser(SafeConfigParser): For instance, for "Account Test", returns "Test".""" key = key + ' ' - return [x[len(key):] for x in self.sections() \ + return [x[len(key):] for x in self.sections() if x.startswith(key)] def set_if_not_exists(self, section, option, value): @@ -157,7 +157,7 @@ def CustomConfigDefault(): pass -class ConfigHelperMixin(): +class ConfigHelperMixin: """Allow comfortable retrieving of config values pertaining to a section.