diff options
Diffstat (limited to 'poezio/core')
-rw-r--r-- | poezio/core/commands.py | 6 | ||||
-rw-r--r-- | poezio/core/handlers.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 65c8778f..94aad16f 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -115,7 +115,7 @@ class CommandCore: if args is None: return self.help('status') - if not args[0] in POSSIBLE_SHOW.keys(): + if args[0] not in POSSIBLE_SHOW.keys(): return self.help('status') show = POSSIBLE_SHOW[args[0]] @@ -562,7 +562,7 @@ class CommandCore: if not section: section = plugin_name option = args[1] - if not plugin_name in self.core.plugin_manager.plugins: + if plugin_name not in self.core.plugin_manager.plugins: file_name = self.core.plugin_manager.plugins_conf_dir file_name = os.path.join(file_name, plugin_name + '.cfg') plugin_config = PluginConfig(file_name, plugin_name) @@ -589,7 +589,7 @@ class CommandCore: section = plugin_name option = args[1] value = args[2] - if not plugin_name in self.core.plugin_manager.plugins: + if plugin_name not in self.core.plugin_manager.plugins: file_name = self.core.plugin_manager.plugins_conf_dir file_name = os.path.join(file_name, plugin_name + '.cfg') plugin_config = PluginConfig(file_name, plugin_name) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 5ecb742a..e7d62567 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1347,7 +1347,7 @@ class HandlerCore: return cert = config.get('certificate') # update the cert representation when it uses the old one - if cert and not ':' in cert: + if cert and ':' not in cert: cert = ':'.join(i + j for i, j in zip(cert[::2], cert[1::2])).upper() config.set_and_save('certificate', cert) |