summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-02-27 19:25:42 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-02-27 19:25:42 (GMT)
commit83c158fdc9d9acb737172a1a365014514afd4fc9 (patch)
tree7a5c83a08bba6e19fdfd321b364e3e2b01f88383 /Lib
parenta34dbe0fdcfd7cf75c8d339542183d58cacfce8b (diff)
downloadcpython-83c158fdc9d9acb737172a1a365014514afd4fc9.zip
cpython-83c158fdc9d9acb737172a1a365014514afd4fc9.tar.gz
cpython-83c158fdc9d9acb737172a1a365014514afd4fc9.tar.bz2
Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/util.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 009ba6c..e596150 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -41,7 +41,12 @@ def get_platform ():
# Try to distinguish various flavours of Unix
(osname, host, release, version, machine) = os.uname()
- osname = string.lower(osname)
+
+ # Convert the OS name to lowercase and remove '/' characters
+ # (to accommodate BSD/OS)
+ osname = string.lower(osname)
+ osname = string.replace(osname, '/', '')
+
if osname[:5] == "linux":
# At least on Linux/Intel, 'machine' is the processor --
# i386, etc.