From 178608f4c0f48e21e956c9859e85a87e7a7245e1 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 6 Oct 2010 10:45:36 -0400 Subject: XMLStream cleanup. Added RestartStream as a top level item in sleekxmpp.xmlstream. Fixed trailing whitespace. --- sleekxmpp/xmlstream/__init__.py | 1 + sleekxmpp/xmlstream/xmlstream.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/xmlstream') diff --git a/sleekxmpp/xmlstream/__init__.py b/sleekxmpp/xmlstream/__init__.py index 8533ca20..a653ddc0 100644 --- a/sleekxmpp/xmlstream/__init__.py +++ b/sleekxmpp/xmlstream/__init__.py @@ -12,3 +12,4 @@ from sleekxmpp.xmlstream.stanzabase import StanzaBase, ElementBase, ET from sleekxmpp.xmlstream.statemachine import StateMachine from sleekxmpp.xmlstream.tostring import tostring from sleekxmpp.xmlstream.xmlstream import XMLStream, RESPONSE_TIMEOUT +from sleekxmpp.xmlstream.xmlstream import RestartStream diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 948b19db..40218dd5 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -486,7 +486,7 @@ class XMLStream(object): self.event_queue.put(('event', handler, copy.copy(data))) if handler[2]: # If the handler is disposable, we will go ahead and - # remove it now instead of waiting for it to be + # remove it now instead of waiting for it to be # processed in the queue. with self.__event_handlers_lock: handler_index = self.__event_handlers[name].index(handler) -- cgit v1.2.3