From f1b94534a44cf2301e59c3da3cfb0f2ec0931b85 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Oct 2017 15:36:10 +0100 Subject: =?UTF-8?q?Change=20all=20=E2=80=9Cnot=20=E2=80=A6=20in=20?= =?UTF-8?q?=E2=80=A6=E2=80=9D=20into=20=E2=80=9C=E2=80=A6=20not=20in=20?= =?UTF-8?q?=E2=80=A6=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/plugin_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'poezio/plugin_manager.py') 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: -- cgit v1.2.3