[thorstenp] remove useless import
This commit is contained in:
parent
86271b6e3c
commit
c2c681e05c
25 changed files with 13 additions and 45 deletions
|
@ -24,7 +24,6 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
from itertools import *
|
from itertools import *
|
||||||
import xmpp
|
|
||||||
import xmpp.features_nb
|
import xmpp.features_nb
|
||||||
import gajim
|
import gajim
|
||||||
import helpers
|
import helpers
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
docdir = '../'
|
docdir = '../'
|
||||||
datadir = '../'
|
datadir = '../'
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
Provides library with all Non-SASL and SASL authentication mechanisms.
|
Provides library with all Non-SASL and SASL authentication mechanisms.
|
||||||
Can be used both for client and transport authentication.
|
Can be used both for client and transport authentication.
|
||||||
'''
|
'''
|
||||||
import sys
|
|
||||||
from protocol import *
|
from protocol import *
|
||||||
from auth import *
|
from auth import *
|
||||||
from client import PlugIn
|
from client import PlugIn
|
||||||
|
|
|
@ -21,7 +21,6 @@ examples of xmpppy structures usage.
|
||||||
These classes can be used for simple applications "AS IS" though.
|
These classes can be used for simple applications "AS IS" though.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import socket
|
|
||||||
import debug
|
import debug
|
||||||
Debug=debug
|
Debug=debug
|
||||||
Debug.DEBUGGING_IS_ON=1
|
Debug.DEBUGGING_IS_ON=1
|
||||||
|
|
|
@ -23,9 +23,6 @@ examples of xmpppy structures usage.
|
||||||
These classes can be used for simple applications "AS IS" though.
|
These classes can be used for simple applications "AS IS" though.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import socket
|
|
||||||
import debug
|
|
||||||
|
|
||||||
import transports_nb, dispatcher_nb, auth_nb, roster_nb
|
import transports_nb, dispatcher_nb, auth_nb, roster_nb
|
||||||
from client import *
|
from client import *
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,6 @@ import traceback
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import types
|
|
||||||
|
|
||||||
if 'TERM' in os.environ:
|
if 'TERM' in os.environ:
|
||||||
colors_enabled=True
|
colors_enabled=True
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -19,7 +19,7 @@ Protocol module contains tools that is needed for processing of
|
||||||
xmpp-related data structures.
|
xmpp-related data structures.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from simplexml import Node,NodeBuilder,ustr
|
from simplexml import Node, NodeBuilder
|
||||||
import time
|
import time
|
||||||
NS_ACTIVITY ='http://jabber.org/protocol/activity' # XEP-0108
|
NS_ACTIVITY ='http://jabber.org/protocol/activity' # XEP-0108
|
||||||
NS_ADDRESS ='http://jabber.org/protocol/address' # XEP-0033
|
NS_ADDRESS ='http://jabber.org/protocol/address' # XEP-0033
|
||||||
|
|
|
@ -27,11 +27,13 @@ Transports are stackable so you - f.e. TLS use HTPPROXYsocket or TCPsocket as mo
|
||||||
Also exception 'error' is defined to allow capture of this module specific exceptions.
|
Also exception 'error' is defined to allow capture of this module specific exceptions.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import socket,select,base64,dispatcher
|
import socket
|
||||||
|
import select
|
||||||
|
import base64
|
||||||
|
import dispatcher
|
||||||
from simplexml import ustr
|
from simplexml import ustr
|
||||||
from client import PlugIn
|
from client import PlugIn
|
||||||
from protocol import *
|
from protocol import *
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import errno
|
import errno
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
## GNU General Public License for more details.
|
## GNU General Public License for more details.
|
||||||
|
|
||||||
import socket,select,base64,dispatcher_nb
|
import socket
|
||||||
|
import base64
|
||||||
|
import dispatcher_nb
|
||||||
import struct
|
import struct
|
||||||
from simplexml import ustr
|
from simplexml import ustr
|
||||||
from client import PlugIn
|
from client import PlugIn
|
||||||
|
@ -28,7 +30,6 @@ import errno
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
import thread
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger('gajim.c.x.transports_nb')
|
log = logging.getLogger('gajim.c.x.transports_nb')
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
import os
|
|
||||||
import time
|
import time
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
@ -482,4 +481,4 @@ class ConnectionHandlersZeroconf(ConnectionVcard, ConnectionBytestream, connecti
|
||||||
def remove_transfer(self, file_props, remove_from_list = True):
|
def remove_transfer(self, file_props, remove_from_list = True):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
import sys
|
|
||||||
import select
|
import select
|
||||||
import re
|
import re
|
||||||
from string import split
|
from string import split
|
||||||
|
@ -335,4 +334,4 @@ class Zeroconf:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -57,7 +57,6 @@ from common import connection
|
||||||
from common import passwords
|
from common import passwords
|
||||||
from common import zeroconf
|
from common import zeroconf
|
||||||
from common import dataforms
|
from common import dataforms
|
||||||
from common import pep
|
|
||||||
|
|
||||||
from common.exceptions import GajimGeneralException
|
from common.exceptions import GajimGeneralException
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,6 @@ import sys
|
||||||
import gtk
|
import gtk
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
import dialogs
|
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import helpers
|
from common import helpers
|
||||||
|
|
||||||
|
@ -187,7 +185,6 @@ class FeaturesWindow:
|
||||||
def gpg_available(self):
|
def gpg_available(self):
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
return False
|
return False
|
||||||
from common import gajim
|
|
||||||
return gajim.HAVE_GPG
|
return gajim.HAVE_GPG
|
||||||
|
|
||||||
def network_manager_available(self):
|
def network_manager_available(self):
|
||||||
|
@ -300,7 +297,6 @@ class FeaturesWindow:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def pycrypto_available(self):
|
def pycrypto_available(self):
|
||||||
from common import gajim
|
|
||||||
return gajim.HAVE_PYCRYPTO
|
return gajim.HAVE_PYCRYPTO
|
||||||
|
|
||||||
def docutils_available(self):
|
def docutils_available(self):
|
||||||
|
@ -311,7 +307,6 @@ class FeaturesWindow:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def pysexy_available(self):
|
def pysexy_available(self):
|
||||||
from common import gajim
|
|
||||||
return gajim.HAVE_PYSEXY
|
return gajim.HAVE_PYSEXY
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
# gajim-remote help will show you the D-BUS API of Gajim
|
# gajim-remote help will show you the D-BUS API of Gajim
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import locale
|
import locale
|
||||||
import signal
|
import signal
|
||||||
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
|
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
|
||||||
|
|
|
@ -251,7 +251,6 @@ from session import ChatControlSession
|
||||||
import common.sleepy
|
import common.sleepy
|
||||||
|
|
||||||
from common.xmpp import idlequeue
|
from common.xmpp import idlequeue
|
||||||
from common.zeroconf import connection_zeroconf
|
|
||||||
from common import nslookup
|
from common import nslookup
|
||||||
from common import proxy65_manager
|
from common import proxy65_manager
|
||||||
from common import socks5
|
from common import socks5
|
||||||
|
|
|
@ -45,7 +45,6 @@ from common import helpers
|
||||||
|
|
||||||
from chat_control import ChatControl
|
from chat_control import ChatControl
|
||||||
from chat_control import ChatControlBase
|
from chat_control import ChatControlBase
|
||||||
from conversation_textview import ConversationTextview
|
|
||||||
from common.exceptions import GajimGeneralException
|
from common.exceptions import GajimGeneralException
|
||||||
|
|
||||||
#(status_image, type, nick, shown_nick)
|
#(status_image, type, nick, shown_nick)
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
'''Window to create new post for discussion groups service.'''
|
'''Window to create new post for discussion groups service.'''
|
||||||
|
|
||||||
import gtk
|
|
||||||
|
|
||||||
from common import gajim, xmpp
|
from common import gajim, xmpp
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@ import sys
|
||||||
import os
|
import os
|
||||||
import pango
|
import pango
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
import thread
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import IPython
|
import IPython
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
import os
|
|
||||||
import gobject
|
import gobject
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# install _() func before importing dbus_support
|
# install _() func before importing dbus_support
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
import dataforms_widget
|
import dataforms_widget
|
||||||
|
|
||||||
import dialogs
|
|
||||||
|
|
||||||
from common import dataforms
|
from common import dataforms
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import xmpp
|
from common import xmpp
|
||||||
|
|
|
@ -14,7 +14,6 @@ try:
|
||||||
import _growl
|
import _growl
|
||||||
except Exception:
|
except Exception:
|
||||||
_growl = False
|
_growl = False
|
||||||
import types
|
|
||||||
import struct
|
import struct
|
||||||
import md5
|
import md5
|
||||||
import socket
|
import socket
|
||||||
|
@ -243,4 +242,4 @@ class GrowlNotifier(object):
|
||||||
def notifyCB(self, userdata):
|
def notifyCB(self, userdata):
|
||||||
print "Got notify in pyland", userdata
|
print "Got notify in pyland", userdata
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
from growl.Growl import GrowlNotifier
|
from growl.Growl import GrowlNotifier
|
||||||
from common import gajim, helpers
|
from common import gajim
|
||||||
|
|
||||||
|
|
||||||
if sys.platform != "darwin":
|
if sys.platform != "darwin":
|
||||||
|
@ -62,4 +62,4 @@ def filterString(string):
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
||||||
# vim: se ts=3:
|
# vim: se ts=3:
|
||||||
|
|
|
@ -33,8 +33,6 @@ import dialogs
|
||||||
import vcard
|
import vcard
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common.i18n import Q_
|
|
||||||
|
|
||||||
|
|
||||||
class ProfileWindow:
|
class ProfileWindow:
|
||||||
'''Class for our information window'''
|
'''Class for our information window'''
|
||||||
|
|
|
@ -50,7 +50,6 @@ import cell_renderer_image
|
||||||
import tooltips
|
import tooltips
|
||||||
import message_control
|
import message_control
|
||||||
import adhoc_commands
|
import adhoc_commands
|
||||||
import notify
|
|
||||||
import features_window
|
import features_window
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
|
@ -62,13 +61,10 @@ from common import pep
|
||||||
|
|
||||||
from message_window import MessageWindowMgr
|
from message_window import MessageWindowMgr
|
||||||
|
|
||||||
from session import ChatControlSession
|
|
||||||
|
|
||||||
from common import dbus_support
|
from common import dbus_support
|
||||||
if dbus_support.supported:
|
if dbus_support.supported:
|
||||||
from music_track_listener import MusicTrackListener
|
from music_track_listener import MusicTrackListener
|
||||||
import dbus
|
import dbus
|
||||||
from lastfm_track_listener import LastFMTrackListener
|
|
||||||
|
|
||||||
from common.xmpp.protocol import NS_COMMANDS, NS_FILE, NS_MUC
|
from common.xmpp.protocol import NS_COMMANDS, NS_FILE, NS_MUC
|
||||||
from common.pep import MOODS, ACTIVITIES
|
from common.pep import MOODS, ACTIVITIES
|
||||||
|
|
|
@ -39,7 +39,6 @@ import locale
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
import message_control
|
|
||||||
|
|
||||||
from common import helpers
|
from common import helpers
|
||||||
from common import gajim
|
from common import gajim
|
||||||
|
|
Loading…
Add table
Reference in a new issue