summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-21 00:20:41 +0200
committermathieui <mathieui@mathieui.net>2016-10-21 00:20:41 +0200
commit0bb67982b035a7f158a1999ed86926a71ebd3511 (patch)
tree0f34b536ffd130577d5f04ae6a5579b4acdf8e0b /poezio/tabs
parentab84756b450b24383f39793060d2057d33f05301 (diff)
downloadpoezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.gz
poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.bz2
poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.tar.xz
poezio-0bb67982b035a7f158a1999ed86926a71ebd3511.zip
pyflake fixes
unused variables, imports, name shadowing
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/muctab.py4
-rw-r--r--poezio/tabs/rostertab.py4
-rw-r--r--poezio/tabs/xmltab.py4
3 files changed, 2 insertions, 10 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index f6965a75..54b7cabf 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -915,18 +915,14 @@ class MucTab(ChatTab):
"""
self.need_resize = False
if config.get('hide_user_list') or self.size.tab_degrade_x:
- display_user_list = False
text_width = self.width
else:
- display_user_list = True
text_width = (self.width // 10) * 9
if self.size.tab_degrade_y:
- display_info_win = False
tab_win_height = 0
info_win_height = 0
else:
- display_info_win = True
tab_win_height = Tab.tab_win_height()
info_win_height = self.core.information_win_size
diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py
index 7ec9f408..2d311012 100644
--- a/poezio/tabs/rostertab.py
+++ b/poezio/tabs/rostertab.py
@@ -269,8 +269,6 @@ class RosterInfoTab(Tab):
"""
completion for /cert_add <name> <path> [management]
"""
- text = the_input.get_text()
- args = common.shell_split(text)
n = the_input.get_argument_position()
log.debug('%s %s %s', the_input.text, n, the_input.pos)
if n == 1:
@@ -352,8 +350,6 @@ class RosterInfoTab(Tab):
"""
completion for /cert_fetch <name> <path>
"""
- text = the_input.get_text()
- args = common.shell_split(text)
n = the_input.get_argument_position()
log.debug('%s %s %s', the_input.text, n, the_input.pos)
if n == 1:
diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py
index 9ed7a77f..e92df03a 100644
--- a/poezio/tabs/xmltab.py
+++ b/poezio/tabs/xmltab.py
@@ -154,8 +154,8 @@ class XMLTab(Tab):
self.refresh()
def match_stanza(self, stanza):
- for matcher in self.filters:
- if not matcher.match(stanza):
+ for matcher_ in self.filters:
+ if not matcher_.match(stanza):
return False
return True