mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
prints() shouldn't throw an exception on windows when printing out very large objects
This commit is contained in:
parent
b7e169c67e
commit
99de8e6cc3
@ -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…
x
Reference in New Issue
Block a user