debug print

This commit is contained in:
Jean-Paul Calderone 2021-09-08 13:43:47 -04:00
parent 0c4fd2fd20
commit 88d3ee5785

View File

@ -37,6 +37,7 @@ if PY2:
if isinstance(o, unicode):
return o.encode(encoding, errors="replace").decode(encoding)
return o
_print("printing {!r} with encoding {!r}".format(args, encoding))
return _print(
*(ensafe(a) for a in args),
file=out,