mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Cleaned up trailing whitespace.
This commit is contained in:
parent
6de87a1cbf
commit
55cfe69fef
1 changed files with 9 additions and 3 deletions
|
@ -117,7 +117,8 @@ class XMLStream(object):
|
||||||
send_xml -- Send an XML string on the stream.
|
send_xml -- Send an XML string on the stream.
|
||||||
set_socket -- Set the stream's socket and generate a new
|
set_socket -- Set the stream's socket and generate a new
|
||||||
filesocket.
|
filesocket.
|
||||||
start_stream_handler -- Meant to be overridden.
|
start_stream_handler -- Perform any stream initialization such
|
||||||
|
as handshakes.
|
||||||
start_tls -- Establish a TLS connection and restart
|
start_tls -- Establish a TLS connection and restart
|
||||||
the stream.
|
the stream.
|
||||||
"""
|
"""
|
||||||
|
@ -313,7 +314,12 @@ class XMLStream(object):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def start_stream_handler(self, xml):
|
def start_stream_handler(self, xml):
|
||||||
"""Meant to be overridden"""
|
"""
|
||||||
|
Perform any initialization actions, such as handshakes, once the
|
||||||
|
stream header has been sent.
|
||||||
|
|
||||||
|
Meant to be overridden.
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def register_stanza(self, stanza_class):
|
def register_stanza(self, stanza_class):
|
||||||
|
@ -464,7 +470,7 @@ class XMLStream(object):
|
||||||
if self.state['is client']:
|
if self.state['is client']:
|
||||||
self.send_raw(self.stream_header)
|
self.send_raw(self.stream_header)
|
||||||
# The call to self.__read_xml will block and prevent
|
# The call to self.__read_xml will block and prevent
|
||||||
# the body of the loop from running until a diconnect
|
# the body of the loop from running until a disconnect
|
||||||
# occurs. After any reconnection, the stream header will
|
# occurs. After any reconnection, the stream header will
|
||||||
# be resent and processing will resume.
|
# be resent and processing will resume.
|
||||||
while self.run and self.__read_xml():
|
while self.run and self.__read_xml():
|
||||||
|
|
Loading…
Reference in a new issue