Fixed line lengths and trailing whitespace.
The pep8 command is now pleased.
This commit is contained in:
parent
7c10ff16fb
commit
6de87a1cbf
@ -265,8 +265,8 @@ class XMLStream(object):
|
|||||||
"""
|
"""
|
||||||
Reset the stream's state and reconnect to the server.
|
Reset the stream's state and reconnect to the server.
|
||||||
"""
|
"""
|
||||||
self.state.set('tls',False)
|
self.state.set('tls', False)
|
||||||
self.state.set('ssl',False)
|
self.state.set('ssl', False)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.connect()
|
self.connect()
|
||||||
|
|
||||||
@ -420,9 +420,9 @@ class XMLStream(object):
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
threaded -- If threaded=True then event dispatcher will run
|
threaded -- If threaded=True then event dispatcher will run
|
||||||
in a separate thread, allowing for the stream to be used
|
in a separate thread, allowing for the stream to be
|
||||||
in the background for another application. Defaults
|
used in the background for another application.
|
||||||
to True.
|
Defaults to True.
|
||||||
|
|
||||||
Event handlers and the send queue will be threaded
|
Event handlers and the send queue will be threaded
|
||||||
regardless of this parameter's value.
|
regardless of this parameter's value.
|
||||||
@ -608,7 +608,8 @@ class XMLStream(object):
|
|||||||
try:
|
try:
|
||||||
handler.run(args[0])
|
handler.run(args[0])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.exception('Error processing event handler: %s' % handler.name)
|
error_msg = 'Error processing event handler: %s'
|
||||||
|
logging.exception(error_msg % handler.name)
|
||||||
args[0].exception(e)
|
args[0].exception(e)
|
||||||
elif etype == 'schedule':
|
elif etype == 'schedule':
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user