mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
140ef318ce
commit
10f3414426
@ -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 = ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user