mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Patch #429442 from Jason Tishler: Corrects sys.platform and
distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s.
This commit is contained in:
parent
79e75e1916
commit
5a3e4cb0a2
3 changed files with 384 additions and 381 deletions
|
@ -62,6 +62,7 @@ def get_platform ():
|
|||
elif osname[:3] == "aix":
|
||||
return "%s-%s.%s" % (osname, version, release)
|
||||
elif osname[:6] == "cygwin":
|
||||
osname = "cygwin"
|
||||
rel_re = re.compile (r'[\d.]+')
|
||||
m = rel_re.match(release)
|
||||
if m:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue