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
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def parse(self, parser):

def attr(self, name, lineno=None):
"""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)
"""
Expand Down
5 changes: 3 additions & 2 deletions jinja2/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def safe_range(*args):


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

0 comments on commit 53278a3

Please sign in to comment.