Explanation.
This commit is contained in:
parent
af5e9eaf67
commit
f95f9c481e
|
@ -186,6 +186,9 @@ def is_printable_ascii(s):
|
||||||
def unicode_to_output(s):
|
def unicode_to_output(s):
|
||||||
"""
|
"""
|
||||||
Encode an unicode object for representation on stdout or stderr.
|
Encode an unicode object for representation on stdout or stderr.
|
||||||
|
|
||||||
|
On Python 3 just returns the string unchanged, since it is not necessary to
|
||||||
|
encode in any way.
|
||||||
"""
|
"""
|
||||||
precondition(isinstance(s, unicode), s)
|
precondition(isinstance(s, unicode), s)
|
||||||
if PY3:
|
if PY3:
|
||||||
|
|
Loading…
Reference in New Issue