]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
removed the last string.split() call
authorTarek Ziadé <ziade.tarek@gmail.com>
Thu, 11 Jun 2009 08:43:26 +0000 (08:43 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Thu, 11 Jun 2009 08:43:26 +0000 (08:43 +0000)
Lib/distutils/sysconfig.py

index 4a4fadde92834af767ef03a6422e668d646149c2..dcc7231ac5a4f3cd1edc8294c677d751637c7f00 100644 (file)
@@ -13,7 +13,6 @@ __revision__ = "$Id$"
 
 import os
 import re
-import string
 import sys
 
 from distutils.errors import DistutilsPlatformError
@@ -435,7 +434,7 @@ def _init_posix():
             # 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)