pyflakes checks, remove unused imports, mainly
This commit is contained in:
parent
5ffa1590f9
commit
14bf5ed62c
|
@ -56,8 +56,6 @@ from string import Template
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger('gajim.c.connection')
|
log = logging.getLogger('gajim.c.connection')
|
||||||
|
|
||||||
import gtkgui_helpers
|
|
||||||
|
|
||||||
ssl_error = {
|
ssl_error = {
|
||||||
2: _("Unable to get issuer certificate"),
|
2: _("Unable to get issuer certificate"),
|
||||||
3: _("Unable to get certificate CRL"),
|
3: _("Unable to get certificate CRL"),
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
reply.setType('error')
|
reply.setType('error')
|
||||||
|
|
||||||
reply.addChild(feature)
|
reply.addChild(feature)
|
||||||
reply.addChild(node=xmpp.ErrorNode('service-unavailable', typ='cancel'))
|
reply.addChild(node=common.xmpp.ErrorNode('service-unavailable', typ='cancel'))
|
||||||
|
|
||||||
con.send(reply)
|
con.send(reply)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import xmpp
|
import xmpp
|
||||||
import gajim
|
import gajim
|
||||||
import dataforms
|
|
||||||
import connection_handlers
|
import connection_handlers
|
||||||
|
|
||||||
class ConnectionPubSub:
|
class ConnectionPubSub:
|
||||||
|
@ -61,7 +60,7 @@ class ConnectionPubSub:
|
||||||
if configure:
|
if configure:
|
||||||
conf = c.addChild('configure')
|
conf = c.addChild('configure')
|
||||||
if configure_form is not None:
|
if configure_form is not None:
|
||||||
conf.addChild(node=configuration_form)
|
conf.addChild(node=configure_form)
|
||||||
|
|
||||||
self.connection.send(query)
|
self.connection.send(query)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from common import gajim
|
from common import gajim
|
||||||
|
|
||||||
from common import xmpp
|
from common import xmpp
|
||||||
from common import helpers
|
|
||||||
from common import exceptions
|
from common import exceptions
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
|
@ -46,7 +46,6 @@ import inspect
|
||||||
import weakref
|
import weakref
|
||||||
import gobject
|
import gobject
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
|
||||||
import pango
|
import pango
|
||||||
|
|
||||||
import dialogs
|
import dialogs
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
import dialogs
|
import dialogs
|
||||||
|
|
|
@ -44,7 +44,6 @@ if os.name == 'nt':
|
||||||
# os.environ['GTK_BASEPATH'] = 'gtk'
|
# os.environ['GTK_BASEPATH'] = 'gtk'
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import urllib
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
consoleloghandler = logging.StreamHandler()
|
consoleloghandler = logging.StreamHandler()
|
||||||
|
@ -222,7 +221,6 @@ import gobject
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import signal
|
import signal
|
||||||
import getopt
|
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ __version__ = '$Revision: 64 $'
|
||||||
|
|
||||||
from urllib import urlopen
|
from urllib import urlopen
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
from time import time, strftime
|
from time import time
|
||||||
|
|
||||||
class LastFM:
|
class LastFM:
|
||||||
# Where to fetch the played song information
|
# Where to fetch the played song information
|
||||||
|
|
|
@ -30,7 +30,6 @@ import gobject
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import urllib
|
|
||||||
|
|
||||||
import common.sleepy
|
import common.sleepy
|
||||||
import history_window
|
import history_window
|
||||||
|
|
Loading…
Reference in New Issue