[Python-checkins] r66104 - python/trunk/Lib/platform.py

hirokazu.yamamoto python-checkins at python.org
Mon Sep 1 16:32:59 CEST 2008


Author: hirokazu.yamamoto
Date: Mon Sep 1 16:32:58 2008
New Revision: 66104
Log:
Issue #3748: platform.architecture() printed vogus message on windows.
Reviewed by Marc-Andre Lemburg.
Modified:
 python/trunk/Lib/platform.py
Modified: python/trunk/Lib/platform.py
==============================================================================
--- python/trunk/Lib/platform.py	(original)
+++ python/trunk/Lib/platform.py	Mon Sep 1 16:32:58 2008
@@ -964,6 +964,9 @@
 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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /