[Python-checkins] r45787 - python/branches/release24-maint/Lib/distutils/util.py

georg.brandl python-checkins at python.org
Fri Apr 28 18:58:56 CEST 2006


Author: georg.brandl
Date: Fri Apr 28 18:58:56 2006
New Revision: 45787

Modified:
   python/branches/release24-maint/Lib/distutils/util.py
Log:
Bug #1478326: don't allow '/' in distutils.util.get_platform machine names
since this value is used to name the build directory.
 (backport from rev. 45786)

Modified: python/branches/release24-maint/Lib/distutils/util.py
==============================================================================
--- python/branches/release24-maint/Lib/distutils/util.py	(original)
+++ python/branches/release24-maint/Lib/distutils/util.py	Fri Apr 28 18:58:56 2006
@@ -45,6 +45,7 @@
     osname = string.lower(osname)
     osname = string.replace(osname, '/', '')
     machine = string.replace(machine, ' ', '_')
+    machine = string.replace(machine, '/', '-')
 
     if osname[:5] == "linux":
         # At least on Linux/Intel, 'machine' is the processor --


More information about the Python-checkins mailing list