diff options
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r-- | Lib/distutils/extension.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py index a63ede2..f49abad 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -7,7 +7,7 @@ modules in setup scripts.""" __revision__ = "$Id$" -import os, string +import os from types import * @@ -168,7 +168,7 @@ def read_setup_file (filename): elif switch == "-I": ext.include_dirs.append(value) elif switch == "-D": - equals = string.find(value, "=") + equals = value.find("=") if equals == -1: # bare "-DFOO" -- no value ext.define_macros.append((value, None)) else: # "-DFOO=blah" |