From: Hirokazu Yamamoto Date: Mon, 1 Sep 2008 14:32:58 +0000 (+0000) Subject: Issue #3748: platform.architecture() printed vogus message on windows. X-Git-Tag: v2.6rc1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed8c6441b507536e7f036d61414a6f32322ed3f0;p=thirdparty%2FPython%2Fcpython.git Issue #3748: platform.architecture() printed vogus message on windows. Reviewed by Marc-Andre Lemburg. --- diff --git a/Lib/platform.py b/Lib/platform.py index 9d64e76501ca..73b6fdb67639 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -964,6 +964,9 @@ def _syscmd_file(target,default=''): case the command should fail. """ + if sys.platform in ('dos','win32','win16','os2'): + # XXX Others too ? + return default target = _follow_symlinks(target) try: f = os.popen('file %s 2> /dev/null' % target)