[Python-3000-checkins] r57282 - python/branches/py3k/Lib/idlelib/MultiCall.py

kurt.kaiser python-3000-checkins at python.org
Wed Aug 22 21:41:43 CEST 2007


Author: kurt.kaiser
Date: Wed Aug 22 21:41:43 2007
New Revision: 57282

Modified:
   python/branches/py3k/Lib/idlelib/MultiCall.py
Log:
Fix bug introduced at r54854 to mass replace string fcns with methods :-)


Modified: python/branches/py3k/Lib/idlelib/MultiCall.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/MultiCall.py	(original)
+++ python/branches/py3k/Lib/idlelib/MultiCall.py	Wed Aug 22 21:41:43 2007
@@ -257,19 +257,16 @@
     """
     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


More information about the Python-3000-checkins mailing list