Fix 'is not' string comparison

This commit is contained in:
Florian Bruhin 2016-07-23 19:51:13 +02:00
parent e887d9a381
commit c3f53312af

View File

@ -494,7 +494,7 @@ class ConfigManager(QObject):
for sectname in cp:
if sectname in self.RENAMED_SECTIONS:
sectname = self.RENAMED_SECTIONS[sectname]
if sectname is not 'DEFAULT' and sectname not in self.sections:
if sectname != 'DEFAULT' and sectname not in self.sections:
if not relaxed:
raise configexc.NoSectionError(sectname)
for sectname in self.sections: