]> granicus.if.org Git - python/commitdiff
Fix bug introduced at r54854 to mass replace string fcns with methods :-)
authorKurt B. Kaiser <kbk@shore.net>
Wed, 22 Aug 2007 19:41:43 +0000 (19:41 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 22 Aug 2007 19:41:43 +0000 (19:41 +0000)
Lib/idlelib/MultiCall.py

index 8efb4509c18204a795a8b0ed1b03d0a18d43acee..9e9e40c19fb4c862632d1f56ed2d1f31d85aa0dd 100644 (file)
@@ -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