From: Francois Deppierraz Date: Fri, 21 May 2010 09:43:13 +0000 (-0700) Subject: misc/show-tool-versions.py: Display additional Python interpreter encoding informatio... X-Git-Url: https://git.rkrishnan.org/htmlfontify-example.html?a=commitdiff_plain;h=bed23ee6d657f5efd2e1346a239b5783e26838a2;p=tahoe-lafs%2Ftahoe-lafs.git misc/show-tool-versions.py: Display additional Python interpreter encoding informations (stdout, stdin and filesystem) --- diff --git a/misc/show-tool-versions.py b/misc/show-tool-versions.py index b75824db..e76215c2 100644 --- a/misc/show-tool-versions.py +++ b/misc/show-tool-versions.py @@ -13,7 +13,11 @@ def print_platform(): pass def print_python_ver(): - print "python:", sys.version.replace("\n", " ") + ', maxunicode: ' + str(sys.maxunicode) + print "python:", sys.version.replace("\n", " "), + print ', maxunicode: ' + str(sys.maxunicode), + print ', stdout.encoding: ' + str(sys.stdout.encoding), + print ', stdin.encoding: ' + str(sys.stdin.encoding), + print ', filesystem.encoding: ' + str(sys.getfilesystemencoding()) def print_cmd_ver(cmdlist, label=None): try: