summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/ic.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-04-17 08:48:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-04-17 08:48:32 (GMT)
commit9d72bb452bced3a100f07f8a9e30c4495a9ec41a (patch)
treec39762a764fcc16f2cfc42e2504e58ff31e159e6 /Lib/plat-mac/ic.py
parentff11334927ee616d765b54a3851016b76a20bcec (diff)
downloadcpython-9d72bb452bced3a100f07f8a9e30c4495a9ec41a.zip
cpython-9d72bb452bced3a100f07f8a9e30c4495a9ec41a.tar.gz
cpython-9d72bb452bced3a100f07f8a9e30c4495a9ec41a.tar.bz2
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
Diffstat (limited to 'Lib/plat-mac/ic.py')
-rw-r--r--Lib/plat-mac/ic.py5
1 files changed, 2 insertions, 3 deletions
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 @@ _decoder_table = {
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 @@ def _code(data, key):
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: