Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
2c09a99b
Commit
2c09a99b
authored
Dec 13, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked the code comments for issue #34.
parent
699a9f75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pystache/template.py
+1
-1
pystache/view.py
+1
-1
No files found.
pystache/template.py
View file @
2c09a99b
...
@@ -169,7 +169,7 @@ class Template(object):
...
@@ -169,7 +169,7 @@ class Template(object):
#
#
# We use "==" rather than "is" to compare integers, as using "is" relies
# We use "==" rather than "is" to compare integers, as using "is" relies
# on an implementation detail of CPython. The test about rendering
# on an implementation detail of CPython. The test about rendering
# zeroes fail
s on
PyPy when using "is".
# zeroes fail
ed while using
PyPy when using "is".
# See issue #34: https://github.com/defunkt/pystache/issues/34
# See issue #34: https://github.com/defunkt/pystache/issues/34
if
not
raw
and
raw
!=
0
:
if
not
raw
and
raw
!=
0
:
if
tag_name
==
'.'
:
if
tag_name
==
'.'
:
...
...
pystache/view.py
View file @
2c09a99b
...
@@ -141,7 +141,7 @@ class View(object):
...
@@ -141,7 +141,7 @@ class View(object):
# We use "==" rather than "is" to compare integers, as using "is" relies
# We use "==" rather than "is" to compare integers, as using "is" relies
# on an implementation detail of CPython. The test about rendering
# on an implementation detail of CPython. The test about rendering
# zeroes fail
s on
PyPy when using "is".
# zeroes fail
ed while using
PyPy when using "is".
# See issue #34: https://github.com/defunkt/pystache/issues/34
# See issue #34: https://github.com/defunkt/pystache/issues/34
if
not
val
and
val
!=
0
:
if
not
val
and
val
!=
0
:
raise
KeyError
(
"Key '
%
s' does not exist in View"
%
attr
)
raise
KeyError
(
"Key '
%
s' does not exist in View"
%
attr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment