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/ic.py b/Lib/plat-mac/ic.py
index 5c109d6..769400a 100644
--- a/Lib/plat-mac/ic.py
+++ b/Lib/plat-mac/ic.py
@@ -1,7 +1,6 @@
"""IC wrapper module, based on Internet Config 1.3"""
import icglue
-import string
import sys
import os
from Carbon import Res
@@ -135,7 +134,7 @@
def _decode(data, key):
if '\245' in key:
- key2 = key[:string.index(key, '\245')+1]
+ key2 = key[:key.index('\245')+1]
else:
key2 = key
if key2 in _decoder_table:
@@ -148,7 +147,7 @@
if type(data) == _ICOpaqueDataType:
return data.data
if '\245' in key:
- key2 = key[:string.index(key, '\245')+1]
+ key2 = key[:key.index('\245')+1]
else:
key2 = key
if key2 in _decoder_table: