mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Remove functions in string module that are also string methods. Also remove:
* all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
This commit is contained in:
parent
ff11334927
commit
9d72bb452b
69 changed files with 396 additions and 2113 deletions
|
|
@ -5,7 +5,7 @@ modules in setup scripts."""
|
|||
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import os, string, sys
|
||||
import os, sys
|
||||
from types import *
|
||||
|
||||
try:
|
||||
|
|
@ -128,7 +128,7 @@ class Extension:
|
|||
if len(kw):
|
||||
L = kw.keys() ; L.sort()
|
||||
L = map(repr, L)
|
||||
msg = "Unknown Extension options: " + string.join(L, ', ')
|
||||
msg = "Unknown Extension options: " + ', '.join(L)
|
||||
if warnings is not None:
|
||||
warnings.warn(msg)
|
||||
else:
|
||||
|
|
@ -195,7 +195,7 @@ def read_setup_file (filename):
|
|||
elif switch == "-I":
|
||||
ext.include_dirs.append(value)
|
||||
elif switch == "-D":
|
||||
equals = string.find(value, "=")
|
||||
equals = value.find("=")
|
||||
if equals == -1: # bare "-DFOO" -- no value
|
||||
ext.define_macros.append((value, None))
|
||||
else: # "-DFOO=blah"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue