]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
misc/build_helpers/show-tool-versions.py: remove attempts to show stdout.encoding...
authordavid-sarah <david-sarah@jacaranda.org>
Mon, 3 Jan 2011 01:51:44 +0000 (17:51 -0800)
committerdavid-sarah <david-sarah@jacaranda.org>
Mon, 3 Jan 2011 01:51:44 +0000 (17:51 -0800)
misc/build_helpers/show-tool-versions.py

index 3c91c25d14f14bc9d94fc3d2d07b6fcb53b3a58e..dedc3d98f593543864e26dfded8eed99b9d84fa8 100644 (file)
@@ -38,12 +38,9 @@ def print_python_ver():
     print 'maxunicode: ' + str(sys.maxunicode)
 
 def print_python_encoding_settings():
-    print_stderr([sys.executable, '-c', 'import sys; print >>sys.stderr, sys.stdout.encoding'], label='sys.stdout.encoding')
-    print_stdout([sys.executable, '-c', 'import sys; print sys.stderr.encoding'], label='sys.stderr.encoding')
     print
     print 'filesystem.encoding: ' + str(sys.getfilesystemencoding())
     print 'locale.getpreferredencoding: ' + str(locale.getpreferredencoding())
-    print 'os.path.supports_unicode_filenames: ' + str(os.path.supports_unicode_filenames)
     try:
         print 'locale.defaultlocale: ' + str(locale.getdefaultlocale())
     except ValueError, e:
@@ -64,20 +61,6 @@ def print_stdout(cmdlist, label=None):
         sys.stderr.flush()
         pass
 
-def print_stderr(cmdlist, label=None):
-    print
-    try:
-        res = subprocess.Popen(cmdlist, stdin=open(os.devnull),
-                               stderr=subprocess.PIPE).communicate()[1]
-        if label is None:
-            label = cmdlist[0]
-        print label + ': ' + foldlines(res)
-    except EnvironmentError:
-        sys.stderr.write("\nGot exception invoking '%s'. Exception follows\n" % (cmdlist[0],))
-        traceback.print_exc(file=sys.stderr)
-        sys.stderr.flush()
-        pass
-
 def print_as_ver():
     print
     if os.path.exists('a.out'):