Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a3e4cb

Browse files
committed
Patch #429442 from Jason Tishler: Corrects sys.platform and
distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s.
1 parent 79e75e1 commit 5a3e4cb

3 files changed

Lines changed: 384 additions & 381 deletions

File tree

Lib/distutils/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def get_platform ():
6262
elif osname[:3] == "aix":
6363
return "%s-%s.%s" % (osname, version, release)
6464
elif osname[:6] == "cygwin":
65+
osname = "cygwin"
6566
rel_re = re.compile (r'[\d.]+')
6667
m = rel_re.match(release)
6768
if m:

0 commit comments

Comments
 (0)