mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
oops
This commit is contained in:
parent
d9f56839e6
commit
dbf9a81940
@ -32,10 +32,10 @@ def prints(*a, **kw):
|
||||
a = (as_unicode(x, errors='replace') for x in a)
|
||||
sep = as_unicode(sep)
|
||||
end = as_unicode(end)
|
||||
for x in a:
|
||||
stream.write(x)
|
||||
if sep:
|
||||
for i, x in enumerate(a):
|
||||
if sep and i != 0:
|
||||
stream.write(sep)
|
||||
stream.write(x)
|
||||
if end:
|
||||
stream.write(end)
|
||||
if kw.get('flush'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user