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