diff options
| author | Georg Brandl <georg@python.org> | 2006-04-28 16:58:52 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-04-28 16:58:52 (GMT) |
| commit | 0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9 (patch) | |
| tree | 839b23e6cbbe2af4030bd6336ba4714935be00d4 /Lib/distutils/util.py | |
| parent | 7a3fd89994b8f79878a2b2d861ed1862b24c5bfe (diff) | |
| download | cpython-0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9.zip cpython-0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9.tar.gz cpython-0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9.tar.bz2 | |
Bug #1478326: don't allow '/' in distutils.util.get_platform machine names
since this value is used to name the build directory.
Diffstat (limited to 'Lib/distutils/util.py')
| -rw-r--r-- | Lib/distutils/util.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 387e9bd..061092b 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -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 -- |
