summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:45:32 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:45:32 (GMT)
commite643bed198edcf71e6bd67d056802a4e47b9ed2d (patch)
tree16e568735d1b0fbfc60c8b9840098bd3a107284e /Lib/distutils/command
parentf6f4b3084c65acde658bded07a020e8c3e446dfa (diff)
downloadcpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.zip
cpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.tar.gz
cpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.tar.bz2
added a test for finalize_options
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/config.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py
index 43a8dc8..f2ebe37 100644
--- a/Lib/distutils/command/config.py
+++ b/Lib/distutils/command/config.py
@@ -12,7 +12,7 @@ this header file lives".
__revision__ = "$Id$"
import sys, os, string, re
-from types import *
+
from distutils.core import Command
from distutils.errors import DistutilsExecError
from distutils.sysconfig import customize_compiler
@@ -68,19 +68,18 @@ class config(Command):
def finalize_options(self):
if self.include_dirs is None:
self.include_dirs = self.distribution.include_dirs or []
- elif type(self.include_dirs) is StringType:
- self.include_dirs = string.split(self.include_dirs, os.pathsep)
+ elif isinstance(self.include_dirs, str):
+ self.include_dirs = self.include_dirs.split(os.pathsep)
if self.libraries is None:
self.libraries = []
- elif type(self.libraries) is StringType:
+ elif isinstance(self.libraries, str):
self.libraries = [self.libraries]
if self.library_dirs is None:
self.library_dirs = []
- elif type(self.library_dirs) is StringType:
- self.library_dirs = string.split(self.library_dirs, os.pathsep)
-
+ elif isinstance(self.library_dirs, str):
+ self.library_dirs = self.library_dirs.split(os.pathsep)
def run (self):
pass