mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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):
|
||||
data = unicode(data, "utf8", "replace")
|
||||
# dump to stdout
|
||||
print data.encode("utf-8")
|
||||
sys.stdout.write(data.encode("utf-8"))
|
||||
# save in buffer
|
||||
self.pool += data
|
||||
# and update timer
|
||||
|
|
Loading…
Reference in a new issue