From: Armin Ronacher Date: Mon, 24 Jan 2011 00:16:00 +0000 (+0100) Subject: Damn you Sphinx X-Git-Tag: 2.6~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=53278a3238ac74775527fa217deb9fe8b7ba69fe;p=jinja2.git Damn you Sphinx --- diff --git a/jinja2/ext.py b/jinja2/ext.py index ceb3895..5ba6efd 100644 --- a/jinja2/ext.py +++ b/jinja2/ext.py @@ -103,7 +103,9 @@ class Extension(object): 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) """ diff --git a/jinja2/sandbox.py b/jinja2/sandbox.py index 3136f64..a1cbb29 100644 --- a/jinja2/sandbox.py +++ b/jinja2/sandbox.py @@ -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):