summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cygwinccompiler.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 12:20:51 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 12:20:51 (GMT)
commitb3acd3e4d338ef41d50b86e9230646c510bb5c6a (patch)
tree8b68e9d058cfd6d8eb218956cb194bbcb8beb523 /Lib/distutils/cygwinccompiler.py
parent7e642e82d3429d9b4f583ba0e81a27e5ea02d5ca (diff)
downloadcpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.zip
cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.gz
cpython-b3acd3e4d338ef41d50b86e9230646c510bb5c6a.tar.bz2
String method conversion.
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 f40d1a2..42318ad 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 string,sys
+ import sys
# if sys.version contains GCC then python was compiled with
# GCC, and the config.h file should be OK
- if string.find(sys.version,"GCC") >= 0:
+ if sys.version.find("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 string.find(s,"__GNUC__") >= 0:
+ if s.find("__GNUC__") >= 0:
return (CONFIG_H_OK, "'%s' mentions '__GNUC__'" % fn)
else:
return (CONFIG_H_NOTOK, "'%s' does not mention '__GNUC__'" % fn)