[Python-checkins] python/dist/src/Lib/distutils util.py,1.72,1.73
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Mon, 06 Jan 2003 05:28:15 -0800
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1:/tmp/cvs-serv23125
Modified Files:
util.py
Log Message:
Translate spaces in the machine name to underscores
(Power Macintosh -> Power_Macintosh)
Index: util.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/util.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** util.py 3 Dec 2002 08:45:11 -0000 1.72
--- util.py 6 Jan 2003 13:28:12 -0000 1.73
***************
*** 41,48 ****
(osname, host, release, version, machine) = os.uname()
! # 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":
--- 41,49 ----
(osname, host, release, version, machine) = os.uname()
! # Convert the OS name to lowercase, remove '/' characters
! # (to accommodate BSD/OS), and translate spaces (for "Power Macintosh")
osname = string.lower(osname)
osname = string.replace(osname, '/', '')
+ machine = string.replace(machine, ' ', '_')
if osname[:5] == "linux":