diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-03-22 03:48:31 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-03-22 03:48:31 +0000 |
commit | 7190dcde7c34b462248e53d6bf9eebeb6000adfe (patch) | |
tree | 8e6c5dcae927c2d8c0032711fe4007154c1c41ce /Lib/distutils/extension.py | |
parent | 76454043ae221dc8a5ff47d50fddd9fcdfa3251f (diff) | |
download | cpython-7190dcde7c34b462248e53d6bf9eebeb6000adfe.tar.gz |
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
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 f49abad003..a63ede233c 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -7,7 +7,7 @@ modules in setup scripts.""" __revision__ = "$Id$" -import os +import os, string from types import * @@ -168,7 +168,7 @@ def read_setup_file (filename): elif switch == "-I": ext.include_dirs.append(value) elif switch == "-D": - equals = value.find("=") + equals = string.find(value, "=") if equals == -1: # bare "-DFOO" -- no value ext.define_macros.append((value, None)) else: # "-DFOO=blah" |