summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-01 14:32:58 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-09-01 14:32:58 (GMT)
commited8c6441b507536e7f036d61414a6f32322ed3f0 (patch)
tree38be98dafe92f06796c6b22ca61857e96e1e8bed /Lib/platform.py
parent72ed07843a35be60e2c5e1d9675b9c97c5cb402d (diff)
downloadcpython-ed8c6441b507536e7f036d61414a6f32322ed3f0.zip
cpython-ed8c6441b507536e7f036d61414a6f32322ed3f0.tar.gz
cpython-ed8c6441b507536e7f036d61414a6f32322ed3f0.tar.bz2
Issue #3748: platform.architecture() printed vogus message on windows.
Reviewed by Marc-Andre Lemburg.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 9d64e76..73b6fdb 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)