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/tabs/basetabs.py | 10 +++++----- poezio/tabs/muctab.py | 2 +- poezio/tabs/rostertab.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'poezio/tabs') 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 -- cgit v1.2.3