removed some unused imports

This commit is contained in:
Tom Nichols 2010-07-12 12:16:58 -04:00
parent 55f83e8ab0
commit 1e009513ee
7 changed files with 2 additions and 24 deletions

View File

@ -14,24 +14,13 @@ from . xmlstream.xmlstream import XMLStream
from . xmlstream.xmlstream import RestartStream from . xmlstream.xmlstream import RestartStream
from . xmlstream.matcher.xmlmask import MatchXMLMask from . xmlstream.matcher.xmlmask import MatchXMLMask
from . xmlstream.matcher.xpath import MatchXPath from . xmlstream.matcher.xpath import MatchXPath
from . xmlstream.matcher.many import MatchMany
from . xmlstream.handler.callback import Callback from . xmlstream.handler.callback import Callback
from . xmlstream.stanzabase import StanzaBase
from . xmlstream import xmlstream as xmlstreammod
from . stanza.message import Message
from . stanza.iq import Iq
import time
import logging import logging
import base64 import base64
import sys import sys
import random import random
import copy
from . import plugins
from xml.etree.cElementTree import tostring from xml.etree.cElementTree import tostring
from xml.etree.cElementTree import Element
from cStringIO import StringIO
#from . import stanza
srvsupport = True srvsupport = True
try: try:
import dns.resolver import dns.resolver

View File

@ -9,11 +9,8 @@ from __future__ import with_statement, unicode_literals
from xml.etree import cElementTree as ET from xml.etree import cElementTree as ET
from . xmlstream.xmlstream import XMLStream
from . xmlstream.matcher.xmlmask import MatchXMLMask from . xmlstream.matcher.xmlmask import MatchXMLMask
from . xmlstream.matcher.many import MatchMany
from . xmlstream.handler.xmlcallback import XMLCallback from . xmlstream.handler.xmlcallback import XMLCallback
from . xmlstream.handler.xmlwaiter import XMLWaiter
from . xmlstream.handler.waiter import Waiter from . xmlstream.handler.waiter import Waiter
from . xmlstream.handler.callback import Callback from . xmlstream.handler.callback import Callback
from . import plugins from . import plugins
@ -23,7 +20,6 @@ from . stanza.presence import Presence
from . stanza.roster import Roster from . stanza.roster import Roster
from . stanza.nick import Nick from . stanza.nick import Nick
from . stanza.htmlim import HTMLIM from . stanza.htmlim import HTMLIM
from . stanza.error import Error
import logging import logging
import threading import threading

View File

@ -7,7 +7,6 @@
""" """
from .. xmlstream.stanzabase import StanzaBase from .. xmlstream.stanzabase import StanzaBase
from xml.etree import cElementTree as ET from xml.etree import cElementTree as ET
from . error import Error
from .. xmlstream.handler.waiter import Waiter from .. xmlstream.handler.waiter import Waiter
from .. xmlstream.matcher.id import MatcherId from .. xmlstream.matcher.id import MatcherId
from . rootstanza import RootStanza from . rootstanza import RootStanza

View File

@ -6,8 +6,6 @@
See the file license.txt for copying permission. See the file license.txt for copying permission.
""" """
from .. xmlstream.stanzabase import StanzaBase from .. xmlstream.stanzabase import StanzaBase
from xml.etree import cElementTree as ET
from . error import Error
from . rootstanza import RootStanza from . rootstanza import RootStanza
class Message(RootStanza): class Message(RootStanza):

View File

@ -5,7 +5,7 @@
See the file license.txt for copying permission. See the file license.txt for copying permission.
""" """
from .. xmlstream.stanzabase import ElementBase, ET from .. xmlstream.stanzabase import ElementBase
class Nick(ElementBase): class Nick(ElementBase):
namespace = 'http://jabber.org/nick/nick' namespace = 'http://jabber.org/nick/nick'

View File

@ -5,8 +5,7 @@
See the file license.txt for copying permission. See the file license.txt for copying permission.
""" """
from .. xmlstream.stanzabase import ElementBase, ET, JID from .. xmlstream.stanzabase import ElementBase, ET
import logging
class Roster(ElementBase): class Roster(ElementBase):
namespace = 'jabber:iq:roster' namespace = 'jabber:iq:roster'

View File

@ -14,15 +14,12 @@ except ImportError:
from . import statemachine from . import statemachine
from . stanzabase import StanzaBase from . stanzabase import StanzaBase
from xml.etree import cElementTree from xml.etree import cElementTree
from xml.parsers import expat
import logging import logging
import random import random
import socket import socket
import threading import threading
import time import time
import traceback import traceback
import types
import xml.sax.saxutils
from . import scheduler from . import scheduler
HANDLER_THREADS = 1 HANDLER_THREADS = 1