Avoid newlines in log

This commit is contained in:
Florian Bruhin 2014-05-26 20:09:46 +02:00
parent 7016627086
commit 271d00417c

View File

@ -164,9 +164,9 @@ class WebView(QWebView):
sender: The object which called the callback.
"""
self._destroyed[sender] = True
dbgout = '\n'.join(['{}: {}'.format(k.__class__.__name__, v)
dbgout = ' / '.join(['{}: {}'.format(k.__class__.__name__, v)
for (k, v) in self._destroyed.items()])
log.destroy.debug("{} has been destroyed, new status:\n{}".format(
log.destroy.debug("{} has been destroyed, new status: {}".format(
sender.__class__.__name__, dbgout))
if all(self._destroyed.values()):
if self._shutdown_callback is not None: