mirror of https://github.com/python/cpython
Bug #1478326: don't allow '/' in distutils.util.get_platform machine names
since this value is used to name the build directory.
This commit is contained in:
parent
7a3fd89994
commit
0f45a078a3
|
@ -45,6 +45,7 @@ def get_platform ():
|
|||
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 --
|
||||
|
|
Loading…
Reference in New Issue