Commit ed8c6441 authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #3748: platform.architecture() printed vogus message on windows.

Reviewed by Marc-Andre Lemburg.
parent 72ed0784
...@@ -964,6 +964,9 @@ def _syscmd_file(target,default=''): ...@@ -964,6 +964,9 @@ def _syscmd_file(target,default=''):
case the command should fail. case the command should fail.
""" """
if sys.platform in ('dos','win32','win16','os2'):
# XXX Others too ?
return default
target = _follow_symlinks(target) target = _follow_symlinks(target)
try: try:
f = os.popen('file %s 2> /dev/null' % target) f = os.popen('file %s 2> /dev/null' % target)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment