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
7a1d6e5a
Commit
7a1d6e5a
authored
Jan 02, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed two unused arguments of _make_get_inverse().
parent
3de74535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pystache/renderengine.py
+5
-3
No files found.
pystache/renderengine.py
View file @
7a1d6e5a
...
...
@@ -77,7 +77,7 @@ def render_parse_tree(parse_tree, context):
return
''
.
join
(
parts
)
def
_make_get_inverse
(
name
,
parsed
,
template
,
delims
):
def
_make_get_inverse
(
name
,
parsed
):
def
get_inverse
(
context
):
data
=
context
.
get
(
name
)
if
data
:
...
...
@@ -386,8 +386,10 @@ class RenderEngine(object):
tmpl
=
e
.
template
end_index
=
e
.
position
tag
=
self
.
_make_get_section
if
captures
[
'tag'
]
==
'#'
else
_make_get_inverse
func
=
tag
(
name
,
bufr
,
tmpl
,
(
self
.
otag
,
self
.
ctag
))
if
captures
[
'tag'
]
==
'#'
:
func
=
self
.
_make_get_section
(
name
,
bufr
,
tmpl
,
(
self
.
otag
,
self
.
ctag
))
else
:
func
=
_make_get_inverse
(
name
,
bufr
)
elif
captures
[
'tag'
]
in
[
'{'
,
'&'
]:
...
...
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