XMLStream cleanup.
Added RestartStream as a top level item in sleekxmpp.xmlstream. Fixed trailing whitespace.
This commit is contained in:
parent
19ee6979a5
commit
178608f4c0
2 changed files with 2 additions and 1 deletions
|
@ -12,3 +12,4 @@ from sleekxmpp.xmlstream.stanzabase import StanzaBase, ElementBase, ET
|
||||||
from sleekxmpp.xmlstream.statemachine import StateMachine
|
from sleekxmpp.xmlstream.statemachine import StateMachine
|
||||||
from sleekxmpp.xmlstream.tostring import tostring
|
from sleekxmpp.xmlstream.tostring import tostring
|
||||||
from sleekxmpp.xmlstream.xmlstream import XMLStream, RESPONSE_TIMEOUT
|
from sleekxmpp.xmlstream.xmlstream import XMLStream, RESPONSE_TIMEOUT
|
||||||
|
from sleekxmpp.xmlstream.xmlstream import RestartStream
|
||||||
|
|
|
@ -486,7 +486,7 @@ class XMLStream(object):
|
||||||
self.event_queue.put(('event', handler, copy.copy(data)))
|
self.event_queue.put(('event', handler, copy.copy(data)))
|
||||||
if handler[2]:
|
if handler[2]:
|
||||||
# If the handler is disposable, we will go ahead and
|
# 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.
|
# processed in the queue.
|
||||||
with self.__event_handlers_lock:
|
with self.__event_handlers_lock:
|
||||||
handler_index = self.__event_handlers[name].index(handler)
|
handler_index = self.__event_handlers[name].index(handler)
|
||||||
|
|
Loading…
Reference in a new issue