summaryrefslogtreecommitdiff
path: root/poezio/core
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/core
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/core')
-rw-r--r--poezio/core/commands.py1
-rw-r--r--poezio/core/core.py2
-rw-r--r--poezio/core/handlers.py1
3 files changed, 1 insertions, 3 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index d44a401e..c4fb6353 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -7,7 +7,6 @@ import logging
log = logging.getLogger(__name__)
import os
-from datetime import datetime
from xml.etree import cElementTree as ET
from slixmpp.xmlstream.stanzabase import StanzaBase
diff --git a/poezio/core/core.py b/poezio/core/core.py
index f9d30cfe..f2341ba3 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -1136,7 +1136,7 @@ class Core(object):
"""
def read_next_digit(digit):
try:
- nb = int(digit)
+ int(digit)
except ValueError:
# If it is not a number, we do nothing. If it was the first
# one, we do not wait for a second one by re-setting the
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index 62fc0731..e79e4232 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -23,7 +23,6 @@ from poezio import common
from poezio import fixes
from poezio import pep
from poezio import tabs
-from poezio import windows
from poezio import xhtml
from poezio import multiuserchat as muc
from poezio.common import safeJID