From 5c273b271726200567c811665e9c1fff1b048494 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 22 Oct 2010 14:59:33 +0200 Subject: [PATCH] clean up some imports --- Cython/Distutils/build_ext.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cython/Distutils/build_ext.py b/Cython/Distutils/build_ext.py index b7895a02..2e9cd77f 100644 --- a/Cython/Distutils/build_ext.py +++ b/Cython/Distutils/build_ext.py @@ -7,10 +7,11 @@ building Cython extension modules.""" __revision__ = "$Id:$" -import sys, os, re -from types import * +import sys +import os +import re from distutils.core import Command -from distutils.errors import * +from distutils.errors import DistutilsPlatformError from distutils.sysconfig import customize_compiler, get_python_version from distutils.dep_util import newer, newer_group from distutils import log @@ -66,7 +67,7 @@ class build_ext(_build_ext.build_ext): _build_ext.build_ext.finalize_options(self) if self.pyrex_include_dirs is None: self.pyrex_include_dirs = [] - elif type(self.pyrex_include_dirs) is StringType: + elif isinstance(self.pyrex_include_dirs, basestring): self.pyrex_include_dirs = \ self.pyrex_include_dirs.split(os.pathsep) if self.pyrex_directives is None: -- 2.26.2