diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 17:02:08 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 17:02:08 +0000 |
commit | 3295eed64b8d43d9dc090c169942192c8d1b781b (patch) | |
tree | 8e0a083b7abc73671263bf828b03a9aa254fd992 /Lib/distutils/command/config.py | |
parent | e643bed198edcf71e6bd67d056802a4e47b9ed2d (diff) | |
download | cpython-git-3295eed64b8d43d9dc090c169942192c8d1b781b.tar.gz |
removed string usage and added a test for _clean
Diffstat (limited to 'Lib/distutils/command/config.py')
-rw-r--r-- | Lib/distutils/command/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index f2ebe37dc9..134fa3892d 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -11,7 +11,7 @@ this header file lives". __revision__ = "$Id$" -import sys, os, string, re +import sys, os, re from distutils.core import Command from distutils.errors import DistutilsExecError @@ -81,7 +81,7 @@ class config(Command): elif isinstance(self.library_dirs, str): self.library_dirs = self.library_dirs.split(os.pathsep) - def run (self): + def run(self): pass @@ -156,7 +156,7 @@ class config(Command): if not filenames: filenames = self.temp_files self.temp_files = [] - log.info("removing: %s", string.join(filenames)) + log.info("removing: %s", ' '.join(filenames)) for filename in filenames: try: os.remove(filename) @@ -308,7 +308,7 @@ class config(Command): else: body.append(" %s;" % func) body.append("}") - body = string.join(body, "\n") + "\n" + body = "\n".join(body) + "\n" return self.try_link(body, headers, include_dirs, libraries, library_dirs) |