diff options
| author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:20:51 +0000 |
|---|---|---|
| committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 12:20:51 +0000 |
| commit | 31bfd423882c406175d12a99256a75411487bb93 (patch) | |
| tree | 289290e618495517e267267ace2e4e1b5dc1b876 /cygwinccompiler.py | |
| parent | 877b037a3e40bfb3285be20db1d161ca44b1e8db (diff) | |
| download | python-setuptools-git-31bfd423882c406175d12a99256a75411487bb93.tar.gz | |
String method conversion.
Diffstat (limited to 'cygwinccompiler.py')
| -rw-r--r-- | cygwinccompiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cygwinccompiler.py b/cygwinccompiler.py index f40d1a2d..42318ad3 100644 --- a/cygwinccompiler.py +++ b/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) |
