[Zope3-checkins] CVS: Zope3/src/zope/documenttemplate -
dt_html.py:1.5 dt_string.py:1.4
Philipp von Weitershausen
philikon at philikon.de
Fri Mar 19 03:03:24 EST 2004
Update of /cvs-repository/Zope3/src/zope/documenttemplate
In directory cvs.zope.org:/tmp/cvs-serv22382
Modified Files:
dt_html.py dt_string.py
Log Message:
Couldn't resist introducing a few booleans here and there.
=== Zope3/src/zope/documenttemplate/dt_html.py 1.4 => 1.5 ===
--- Zope3/src/zope/documenttemplate/dt_html.py:1.4 Wed Jan 14 17:55:30 2004
+++ Zope3/src/zope/documenttemplate/dt_html.py Fri Mar 19 03:03:23 2004
@@ -27,7 +27,7 @@
ent_name=re.compile('[-a-zA-Z0-9_.]+').match
):
- while 1:
+ while True:
mo = start_search(text, start)
if mo is None:
return None
@@ -35,7 +35,7 @@
if text[s:s+6] == '<dtml-':
e = n = s+6
- while 1:
+ while True:
e = text.find('>', e+1)
if e < 0:
return None
@@ -48,7 +48,7 @@
elif text[s:s+7] == '</dtml-':
e=n=s+7
- while 1:
+ while True:
e=text.find('>',e+1)
if e < 0:
return None
=== Zope3/src/zope/documenttemplate/dt_string.py 1.3 => 1.4 ===
--- Zope3/src/zope/documenttemplate/dt_string.py:1.3 Thu May 1 15:35:40 2003
+++ Zope3/src/zope/documenttemplate/dt_string.py Fri Mar 19 03:03:23 2004
@@ -213,7 +213,7 @@
sname = stag
sstart = start
sa = sargs
- while 1:
+ while True:
mo = tagre.search(text, start)
if mo is None:
@@ -259,7 +259,7 @@
def parse_close(self, text, start, tagre, stag, sloc, scommand, sa):
- while 1:
+ while True:
mo = tagre.search(text, start)
if mo is None:
self.parse_error('No closing tag', stag, text, sloc)
More information about the Zope3-Checkins
mailing list