mirror of
https://github.com/ankitects/anki.git
synced 2025-12-31 15:52:58 -05:00
don't add extra newlines in error handler
This commit is contained in:
parent
bfa594a5d0
commit
d25bfd0e58
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class ErrorHandler(QObject):
|
||||||
if not isinstance(data, unicode):
|
if not isinstance(data, unicode):
|
||||||
data = unicode(data, "utf8", "replace")
|
data = unicode(data, "utf8", "replace")
|
||||||
# dump to stdout
|
# dump to stdout
|
||||||
print data.encode("utf-8")
|
sys.stdout.write(data.encode("utf-8"))
|
||||||
# save in buffer
|
# save in buffer
|
||||||
self.pool += data
|
self.pool += data
|
||||||
# and update timer
|
# and update timer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue