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/tabs | |
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/tabs')
-rw-r--r-- | poezio/tabs/basetabs.py | 10 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 2 | ||||
-rw-r--r-- | poezio/tabs/rostertab.py | 2 |
3 files changed, 7 insertions, 7 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.', diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 6349b98e..4ba6d6d0 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -486,7 +486,7 @@ class MucTab(ChatTab): nick = args[0] color = args[1].lower() user = self.get_user_by_name(nick) - if not color in xhtml.colors and color not in ('unset', 'random'): + if color not in xhtml.colors and color not in ('unset', 'random'): return self.core.information("Unknown color: %s" % color, 'Error') if user and user.nick == self.own_nick: return self.core.information("You cannot change the color of your" diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py index 2aa2fa5a..a8d06391 100644 --- a/poezio/tabs/rostertab.py +++ b/poezio/tabs/rostertab.py @@ -609,7 +609,7 @@ class RosterInfoTab(Tab): return else: jid = safeJID(args[0]).bare - if not jid in [jid for jid in roster.jids()]: + if jid not in [jid for jid in roster.jids()]: self.core.information('No subscription to deny', 'Warning') return |