Clean up while loop in check-templates.

(imported from commit 79c2cc2b1ced0fc80b0a1996fd9150b39e689a31)
This commit is contained in:
Steve Howell 2014-02-27 16:29:20 -05:00 committed by Jessica McKellar
parent 9da693c371
commit a07299f1d6
1 changed files with 2 additions and 3 deletions

View File

@ -65,9 +65,8 @@ def validate(fn, check_indent=True):
def looking_at(s):
return text[state.i:state.i+len(s)] == s
while True:
if state.i >= len(text):
break
while state.i < len(text):
c = text[state.i]
if c == '<':
s = get_html_tag(text, state.i)