diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:20:51 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:20:51 (GMT) |
commit | b3acd3e4d338ef41d50b86e9230646c510bb5c6a (patch) | |
tree | 8b68e9d058cfd6d8eb218956cb194bbcb8beb523 /Lib/distutils/extension.py | |
parent | 7e642e82d3429d9b4f583ba0e81a27e5ea02d5ca (diff) | |
download | cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.zip cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.gz cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.bz2 |
String method conversion.
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" |