diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:31:24 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:31:24 +0000 |
commit | f6f4b3084c65acde658bded07a020e8c3e446dfa (patch) | |
tree | c745e60819c6db23f2b2f2e4df339edb5a1a9628 /Lib/distutils/command/config.py | |
parent | 7bea344d35dc43642184c00e6cae6d1c396e721b (diff) | |
download | cpython-git-f6f4b3084c65acde658bded07a020e8c3e446dfa.tar.gz |
added a simple test for search_cpp
Diffstat (limited to 'Lib/distutils/command/config.py')
-rw-r--r-- | Lib/distutils/command/config.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index 74eed78391..43a8dc8439 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -202,11 +202,10 @@ class config(Command): preprocesses an empty file -- which can be useful to determine the symbols the preprocessor and compiler set by default. """ - self._check_compiler() - (src, out) = self._preprocess(body, headers, include_dirs, lang) + src, out = self._preprocess(body, headers, include_dirs, lang) - if type(pattern) is StringType: + if isinstance(pattern, str): pattern = re.compile(pattern) file = open(out) |