summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wanstrath <chris@ozmm.org>2009-11-06 17:40:35 -0800
committerChris Wanstrath <chris@ozmm.org>2009-11-06 17:40:35 -0800
commit6372a33744ae149a1c0f5de6d42bbb763381962b (patch)
treed1666035bf96de232da95411e237cb45ea72749e
parent7df1984375b1c6d063951ab343aad05e816bdb1d (diff)
downloadpystache-6372a33744ae149a1c0f5de6d42bbb763381962b.tar.gz
slight tweaks
-rw-r--r--pystache/template.py2
-rw-r--r--pystache/view.py1
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__