cpython: d6d908dc11f2 (original) (raw)

Mercurial > cpython

changeset 79451:d6d908dc11f2 2.7

Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Solve a 2.7 bootstrap issue [#16112]

Jesus Cea jcea@jcea.es
date Thu, 04 Oct 2012 15:14:56 +0200
parents de5d5cbf1b45
children 06772ba3d001
files Lib/platform.py
diffstat 1 files changed, 21 insertions(+), 1 deletions(-)[+] [-] Lib/platform.py 22

line wrap: on

line diff

--- a/Lib/platform.py +++ b/Lib/platform.py @@ -113,7 +113,7 @@ version = '1.0.7' -import sys,string,os,re,subprocess +import sys,string,os,re

Globals & Constants

@@ -1020,6 +1020,26 @@ def _syscmd_file(target,default=''): case the command should fail. """ +

+

+ if sys.platform in ('dos','win32','win16','os2'): # XXX Others too ? return default