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/plugin_manager.py | |
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/plugin_manager.py')
-rw-r--r-- | poezio/plugin_manager.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/plugin_manager.py b/poezio/plugin_manager.py index f20797f0..fe4bce20 100644 --- a/poezio/plugin_manager.py +++ b/poezio/plugin_manager.py @@ -164,7 +164,7 @@ class PluginManager(object): t = tab_type.__name__ if name in tab_type.plugin_commands: return - if not t in commands: + if t not in commands: commands[t] = [] commands[t].append((name, handler, help, completion)) tab_type.plugin_commands[name] = Command(handler, help, @@ -179,7 +179,7 @@ class PluginManager(object): """ commands = self.tab_commands[module_name] t = tab_type.__name__ - if not t in commands: + if t not in commands: return for command in commands[t]: if command[0] == name: @@ -197,7 +197,7 @@ class PluginManager(object): t = tab_type.__name__ if key in tab_type.plugin_keys: return - if not t in keys: + if t not in keys: keys[t] = [] keys[t].append((key, handler)) tab_type.plugin_keys[key] = handler @@ -211,7 +211,7 @@ class PluginManager(object): """ keys = self.tab_keys[module_name] t = tab_type.__name__ - if not t in keys: + if t not in keys: return for _key in keys[t]: if _key[0] == key: |