def createCategory(self, category):
        if self.settings not in category:
            suffix = '.cfg'
            path = os.path.join(self.folder, category + suffix)
            self.settings[category] = SettingGroup(logger=self.logger,
                                                   name=category,
                                                   preffile=path)
        return self.settings[category]
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/Settings.py/Preferences.createCategory/swapped operands of `not in`