diff options
author | Chris Wanstrath <chris@ozmm.org> | 2009-11-06 17:40:35 -0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2009-11-06 17:40:35 -0800 |
commit | 6372a33744ae149a1c0f5de6d42bbb763381962b (patch) | |
tree | d1666035bf96de232da95411e237cb45ea72749e | |
parent | 7df1984375b1c6d063951ab343aad05e816bdb1d (diff) | |
download | pystache-6372a33744ae149a1c0f5de6d42bbb763381962b.tar.gz |
slight tweaks
-rw-r--r-- | pystache/template.py | 2 | ||||
-rw-r--r-- | pystache/view.py | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/pystache/template.py b/pystache/template.py index 7fff600..ba06547 100644 --- a/pystache/template.py +++ b/pystache/template.py @@ -23,7 +23,7 @@ class Template(object): def render_sections(self, template, context): """Expands sections.""" - while 1: + while True: match = SECTION_RE.search(template) if match is None: break diff --git a/pystache/view.py b/pystache/view.py index 2c5839e..02bde7c 100644 --- a/pystache/view.py +++ b/pystache/view.py @@ -38,7 +38,6 @@ class View(object): """TemplatePartial => template_partial Takes a string but defaults to using the current class' name. """ - if not name: name = self.__class__.__name__ |