summaryrefslogtreecommitdiff
path: root/poezio/core/commands.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 15:36:10 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 15:38:06 +0100
commitf1b94534a44cf2301e59c3da3cfb0f2ec0931b85 (patch)
treec8ac2221e7844c35db0df8f1011ee8a3e1fcb5e0 /poezio/core/commands.py
parentb2b64426724bcbe6e58f7baab6434219fc8812ed (diff)
downloadpoezio-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/commands.py')
-rw-r--r--poezio/core/commands.py6
1 files changed, 3 insertions, 3 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)