summaryrefslogtreecommitdiff
path: root/poezio/tabs/basetabs.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/tabs/basetabs.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/tabs/basetabs.py')
-rw-r--r--poezio/tabs/basetabs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 7d449eae..98f4c977 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -143,7 +143,7 @@ class Tab(object):
@state.setter
def state(self, value):
- if not value in STATE_COLORS:
+ if value not in STATE_COLORS:
log.debug("Invalid value for tab state: %s", value)
elif STATE_PRIORITY[value] < STATE_PRIORITY[self._state] and \
value not in ('current', 'disconnected') and \
@@ -325,12 +325,12 @@ class Tab(object):
def update_commands(self):
for c in self.plugin_commands:
- if not c in self.commands:
+ if c not in self.commands:
self.commands[c] = self.plugin_commands[c]
def update_keys(self):
for k in self.plugin_keys:
- if not k in self.key_func:
+ if k not in self.key_func:
self.key_func[k] = self.plugin_keys[k]
def on_lose_focus(self):
@@ -858,10 +858,10 @@ class OneToOneTab(ChatTab):
def _feature_correct(self, features):
"Check for the 'correction' feature"
- if not 'urn:xmpp:message-correct:0' in features:
+ if 'urn:xmpp:message-correct:0' not in features:
if 'correct' in self.commands:
del self.commands['correct']
- elif not 'correct' in self.commands:
+ elif 'correct' not in self.commands:
self.register_command('correct', self.command_correct,
desc='Fix the last message with whatever you want.',
shortdesc='Correct the last message.',