This commit is contained in:
Kovid Goyal 2019-12-19 08:32:14 +05:30
parent d9f56839e6
commit dbf9a81940
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -32,10 +32,10 @@ def prints(*a, **kw):
a = (as_unicode(x, errors='replace') for x in a) a = (as_unicode(x, errors='replace') for x in a)
sep = as_unicode(sep) sep = as_unicode(sep)
end = as_unicode(end) end = as_unicode(end)
for x in a: for i, x in enumerate(a):
stream.write(x) if sep and i != 0:
if sep:
stream.write(sep) stream.write(sep)
stream.write(x)
if end: if end:
stream.write(end) stream.write(end)
if kw.get('flush'): if kw.get('flush'):