[Python-checkins] r73345 - python/trunk/Lib/distutils/sysconfig.py

tarek.ziade python-checkins at python.org
Thu Jun 11 10:43:27 CEST 2009


Author: tarek.ziade
Date: Thu Jun 11 10:43:26 2009
New Revision: 73345

Log:
removed the last string.split() call

Modified:
   python/trunk/Lib/distutils/sysconfig.py

Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py	(original)
+++ python/trunk/Lib/distutils/sysconfig.py	Thu Jun 11 10:43:26 2009
@@ -13,7 +13,6 @@
 
 import os
 import re
-import string
 import sys
 
 from distutils.errors import DistutilsPlatformError
@@ -435,7 +434,7 @@
             # relative to the srcdir, which after installation no longer makes
             # sense.
             python_lib = get_python_lib(standard_lib=1)
-            linkerscript_path = string.split(g['LDSHARED'])[0]
+            linkerscript_path = g['LDSHARED'].split()[0]
             linkerscript_name = os.path.basename(linkerscript_path)
             linkerscript = os.path.join(python_lib, 'config',
                                         linkerscript_name)


More information about the Python-checkins mailing list