summaryrefslogtreecommitdiff
path: root/mwerkscompiler.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-04-17 08:48:32 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-04-17 08:48:32 +0000
commit57e9dc4a5d61c5572467c3fe69e816c357647a6f (patch)
tree3d5a6762bdc6872881f70fff537ac50636606dcc /mwerkscompiler.py
parenta67f7d4700f890ac5822401b756dc0b20a6eb421 (diff)
downloadpython-setuptools-git-57e9dc4a5d61c5572467c3fe69e816c357647a6f.tar.gz
Remove functions in string module that are also string methods. Also remove:
* all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
Diffstat (limited to 'mwerkscompiler.py')
-rw-r--r--mwerkscompiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mwerkscompiler.py b/mwerkscompiler.py
index 9db1a39b..028ea825 100644
--- a/mwerkscompiler.py
+++ b/mwerkscompiler.py
@@ -8,7 +8,7 @@ Windows."""
__revision__ = "$Id$"
-import sys, os, string
+import sys, os
from types import *
from distutils.errors import \
DistutilsExecError, DistutilsPlatformError, \
@@ -213,11 +213,11 @@ class MWerksCompiler (CCompiler) :
curdir = os.getcwd()
filename = os.path.join(curdir, filename)
# Finally remove .. components
- components = string.split(filename, ':')
+ components = filename.split(':')
for i in range(1, len(components)):
if components[i] == '..':
components[i] = ''
- return string.join(components, ':')
+ return ':'.join(components)
def library_dir_option (self, dir):
"""Return the compiler option to add 'dir' to the list of