Skip to content

Commit

Permalink
Damn you Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 24, 2011
1 parent d464d08 commit 53278a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion jinja2/ext.py
Expand Up @@ -103,7 +103,9 @@ def parse(self, parser):


def attr(self, name, lineno=None): def attr(self, name, lineno=None):
"""Return an attribute node for the current extension. This is useful """Return an attribute node for the current extension. This is useful
to pass constants on extensions to generated template code:: to pass constants on extensions to generated template code.
::
self.attr('_my_attribute', lineno=lineno) self.attr('_my_attribute', lineno=lineno)
""" """
Expand Down
5 changes: 3 additions & 2 deletions jinja2/sandbox.py
Expand Up @@ -98,8 +98,9 @@ def safe_range(*args):




def unsafe(f): def unsafe(f):
""" """Marks a function or method as unsafe.
Mark a function or method as unsafe::
::
@unsafe @unsafe
def delete(self): def delete(self):
Expand Down

0 comments on commit 53278a3

Please sign in to comment.