mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
debug print
This commit is contained in:
parent
0c4fd2fd20
commit
88d3ee5785
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user