summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/MultiCall.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-08-22 19:41:43 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-08-22 19:41:43 (GMT)
commit4d9620a6873453768288d94c65939bec773af5aa (patch)
tree7231620d0690e992544280acc3d6b845ef5c1225 /Lib/idlelib/MultiCall.py
parent0e6012cbf3ce7a5e716ed55f4941b910d9a9c2f9 (diff)
downloadcpython-4d9620a6873453768288d94c65939bec773af5aa.zip
cpython-4d9620a6873453768288d94c65939bec773af5aa.tar.gz
cpython-4d9620a6873453768288d94c65939bec773af5aa.tar.bz2
Fix bug introduced at r54854 to mass replace string fcns with methods :-)
Diffstat (limited to 'Lib/idlelib/MultiCall.py')
-rw-r--r--Lib/idlelib/MultiCall.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py
index 8efb450..9e9e40c 100644
--- a/Lib/idlelib/MultiCall.py
+++ b/Lib/idlelib/MultiCall.py
@@ -257,19 +257,16 @@ def _parse_sequence(sequence):
"""
if not sequence or sequence[0] != '<' or sequence[-1] != '>':
return None
- words = '-'.split(sequence[1:-1])
-
+ words = sequence[1:-1].split('-')
modifiers = 0
while words and words[0] in _modifier_names:
modifiers |= 1 << _modifier_names[words[0]]
del words[0]
-
if words and words[0] in _type_names:
type = _type_names[words[0]]
del words[0]
else:
return None
-
if _binder_classes[type] is _SimpleBinder:
if modifiers or words:
return None