mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ def get_platform ():
|
||||||
osname = string.lower(osname)
|
osname = string.lower(osname)
|
||||||
osname = string.replace(osname, '/', '')
|
osname = string.replace(osname, '/', '')
|
||||||
machine = string.replace(machine, ' ', '_')
|
machine = string.replace(machine, ' ', '_')
|
||||||
|
machine = string.replace(machine, '/', '-')
|
||||||
|
|
||||||
if osname[:5] == "linux":
|
if osname[:5] == "linux":
|
||||||
# At least on Linux/Intel, 'machine' is the processor --
|
# At least on Linux/Intel, 'machine' is the processor --
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue