diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-08 15:36:10 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-08 15:38:06 +0100 |
commit | f1b94534a44cf2301e59c3da3cfb0f2ec0931b85 (patch) | |
tree | c8ac2221e7844c35db0df8f1011ee8a3e1fcb5e0 /poezio/core | |
parent | b2b64426724bcbe6e58f7baab6434219fc8812ed (diff) | |
download | poezio-f1b94534a44cf2301e59c3da3cfb0f2ec0931b85.tar.gz poezio-f1b94534a44cf2301e59c3da3cfb0f2ec0931b85.tar.bz2 poezio-f1b94534a44cf2301e59c3da3cfb0f2ec0931b85.tar.xz poezio-f1b94534a44cf2301e59c3da3cfb0f2ec0931b85.zip |
Change all “not … in …” into “… not in …”.
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) |