mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
removed string.split usage
This commit is contained in:
parent
ccf608c94c
commit
56342d578e
1 changed files with 2 additions and 3 deletions
|
@ -16,7 +16,7 @@ __revision__ = "$Id$"
|
||||||
# two modules, mainly because a number of subtle details changed in the
|
# two modules, mainly because a number of subtle details changed in the
|
||||||
# cut 'n paste. Sigh.
|
# cut 'n paste. Sigh.
|
||||||
|
|
||||||
import os, string
|
import os
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.errors import *
|
from distutils.errors import *
|
||||||
from distutils.sysconfig import customize_compiler
|
from distutils.sysconfig import customize_compiler
|
||||||
|
@ -87,8 +87,7 @@ class build_clib (Command):
|
||||||
if self.include_dirs is None:
|
if self.include_dirs is None:
|
||||||
self.include_dirs = self.distribution.include_dirs or []
|
self.include_dirs = self.distribution.include_dirs or []
|
||||||
if isinstance(self.include_dirs, str):
|
if isinstance(self.include_dirs, str):
|
||||||
self.include_dirs = string.split(self.include_dirs,
|
self.include_dirs = self.include_dirs.split(os.pathsep)
|
||||||
os.pathsep)
|
|
||||||
|
|
||||||
# XXX same as for build_ext -- what about 'self.define' and
|
# XXX same as for build_ext -- what about 'self.define' and
|
||||||
# 'self.undef' ?
|
# 'self.undef' ?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue