Commit 2c09a99b by Chris Jerdonek

Tweaked the code comments for issue #34.

parent 699a9f75
......@@ -169,7 +169,7 @@ class Template(object):
#
# We use "==" rather than "is" to compare integers, as using "is" relies
# on an implementation detail of CPython. The test about rendering
# zeroes fails on PyPy when using "is".
# zeroes failed while using PyPy when using "is".
# See issue #34: https://github.com/defunkt/pystache/issues/34
if not raw and raw != 0:
if tag_name == '.':
......
......@@ -141,7 +141,7 @@ class View(object):
# We use "==" rather than "is" to compare integers, as using "is" relies
# on an implementation detail of CPython. The test about rendering
# zeroes fails on PyPy when using "is".
# zeroes failed while using PyPy when using "is".
# See issue #34: https://github.com/defunkt/pystache/issues/34
if not val and val != 0:
raise KeyError("Key '%s' does not exist in View" % attr)
......
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