mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
String method conversion.
This commit is contained in:
parent
7e642e82d3
commit
b3acd3e4d3
5 changed files with 17 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue