This commit is contained in:
Kovid Goyal 2020-08-12 06:16:57 +05:30
parent 140ef318ce
commit 10f3414426
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -18,6 +18,8 @@ def is_binary(stream):
def prints(*a, **kw): def prints(*a, **kw):
' Print either unicode or bytes to either binary or text mode streams ' ' Print either unicode or bytes to either binary or text mode streams '
stream = kw.get('file', sys.stdout) stream = kw.get('file', sys.stdout)
if stream is None:
return
sep, end = kw.get('sep'), kw.get('end') sep, end = kw.get('sep'), kw.get('end')
if sep is None: if sep is None:
sep = ' ' sep = ' '