Index: platform.py =================================================================== --- platform.py (revision 73999) +++ platform.py (working copy) @@ -926,7 +926,7 @@ # XXX Others too ? return default try: - f = os.popen('uname %s 2> /dev/null' % option) + f = os.popen('uname %s 2> %s' % (option,os.devnull)) except (AttributeError,os.error): return default output = string.strip(f.read()) @@ -951,7 +951,7 @@ return default target = _follow_symlinks(target) try: - f = os.popen('file "%s" 2> /dev/null' % target) + f = os.popen('file "%s" 2> %s' % (target,os.devnull)) except (AttributeError,os.error): return default output = string.strip(f.read())