Commit 6372a337 by Chris Wanstrath

slight tweaks

parent 7df19843
...@@ -23,7 +23,7 @@ class Template(object): ...@@ -23,7 +23,7 @@ class Template(object):
def render_sections(self, template, context): def render_sections(self, template, context):
"""Expands sections.""" """Expands sections."""
while 1: while True:
match = SECTION_RE.search(template) match = SECTION_RE.search(template)
if match is None: if match is None:
break break
......
...@@ -38,7 +38,6 @@ class View(object): ...@@ -38,7 +38,6 @@ class View(object):
"""TemplatePartial => template_partial """TemplatePartial => template_partial
Takes a string but defaults to using the current class' name. Takes a string but defaults to using the current class' name.
""" """
if not name: if not name:
name = self.__class__.__name__ name = self.__class__.__name__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment