summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/basetabs.py10
-rw-r--r--poezio/tabs/muctab.py2
-rw-r--r--poezio/tabs/rostertab.py2
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