mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 23:15:09 +01:00
prints() shouldn't throw an exception on windows when printing out very large objects
This commit is contained in:
parent
b7e169c67e
commit
99de8e6cc3
1 changed files with 2 additions and 1 deletions
|
|
@ -201,7 +201,8 @@ def prints(*args, **kwargs):
|
|||
try:
|
||||
file.write(arg)
|
||||
except:
|
||||
file.write(repr(arg))
|
||||
import repr as reprlib
|
||||
file.write(reprlib.repr(arg))
|
||||
if i != len(args)-1:
|
||||
file.write(bytes(sep))
|
||||
file.write(bytes(end))
|
||||
|
|
|
|||
Loading…
Reference in a new issue