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
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index 4a0efbf..d2b53b3 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -2,7 +2,6 @@
import sys
import os
-import string
import imp
import marshal
from Carbon import Res
@@ -86,7 +85,7 @@
# Set the destination file name. Note that basename
# does contain the whole filepath, only a .py is stripped.
- if string.lower(filename[-3:]) == ".py":
+ if filename[-3:].lower() == ".py":
basename = filename[:-3]
if MacOS.runtimemodel != 'macho' and not destname:
destname = basename
@@ -347,7 +346,7 @@
for ires in range(1, 1+nresources):
res = Res.Get1IndResource(type, ires)
id, type, name = res.GetResInfo()
- lcname = string.lower(name)
+ lcname = name.lower()
if lcname == OWNERNAME and id == 0:
if skipowner: