summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-07-20 19:29:04 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-07-20 19:29:04 (GMT)
commit5a3e4cb0a2b922bbbcaf3e3afa9693b57e189ea4 (patch)
treef00d31a49ebbae9c8db69c919dd8ebfb748a22cd /Lib/distutils/util.py
parent79e75e1916c33ee8e3de4c1b6c38221f2dba315c (diff)
downloadcpython-5a3e4cb0a2b922bbbcaf3e3afa9693b57e189ea4.zip
cpython-5a3e4cb0a2b922bbbcaf3e3afa9693b57e189ea4.tar.gz
cpython-5a3e4cb0a2b922bbbcaf3e3afa9693b57e189ea4.tar.bz2
Patch #429442 from Jason Tishler: Corrects sys.platform and
distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 01abd34..25ddbdf 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -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: