[Zope-Checkins] CVS: Zope/lib/python/TAL - markupbase.py:1.1.34.1

Fred L. Drake, Jr. fdrake@acm.org
Wed, 25 Sep 2002 12:26:06 -0400


Update of /cvs-repository/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv30038

Modified Files:
      Tag: Zope-2_5-branch
	markupbase.py 
Log Message:
Add regression test for the typo-buglet Jeremy fixed in Zope 2.6 and newer,
and fix the bug that uncovered (which also existed in Zope 2.5).


=== Zope/lib/python/TAL/markupbase.py 1.1 => 1.1.34.1 ===
--- Zope/lib/python/TAL/markupbase.py:1.1	Mon Sep 24 16:32:39 2001
+++ Zope/lib/python/TAL/markupbase.py	Wed Sep 25 12:26:05 2002
@@ -193,10 +193,10 @@
             if c == "(":
                 # an enumerated type; look for ')'
                 if ")" in rawdata[j:]:
-                    j = string.find(rawdata, ")", j) + 1
+                    j = rawdata.find(")", j) + 1
                 else:
                     return -1
-                while rawdata[j:j+1] in string.whitespace:
+                while rawdata[j:j+1].isspace():
                     j = j + 1
                 if not rawdata[j:]:
                     # end of buffer, incomplete