summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cygwinccompiler.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
commitac20f773f3b625121ff5f593fbb9f0934bfb8d8e (patch)
tree9a0b4a3b1214a8796d6784abd95a0127d1c745c9 /Lib/distutils/cygwinccompiler.py
parenta7f225d88af3b7a77b0fd8c0ed6129b46c5af865 (diff)
downloadcpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.zip
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.gz
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.bz2
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
Diffstat (limited to 'Lib/distutils/cygwinccompiler.py')
-rw-r--r--Lib/distutils/cygwinccompiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
index 42318ad..f40d1a2 100644
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -365,10 +365,10 @@ def check_config_h():
# "config.h" check -- should probably be renamed...
from distutils import sysconfig
- import sys
+ import string,sys
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
- if sys.version.find("GCC") >= 0:
+ if string.find(sys.version,"GCC") >= 0:
return (CONFIG_H_OK, "sys.version mentions 'GCC'")
fn = sysconfig.get_config_h_filename()
@@ -387,7 +387,7 @@ def check_config_h():
else:
# "config.h" contains an "#ifdef __GNUC__" or something similar
- if s.find("__GNUC__") >= 0:
+ if string.find(s,"__GNUC__") >= 0:
return (CONFIG_H_OK, "'%s' mentions '__GNUC__'" % fn)
else:
return (CONFIG_H_NOTOK, "'%s' does not mention '__GNUC__'" % fn)