Skip to content
Myr

Damn you Sphinx

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d464d08 · Browse files · 2 files+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−3 removed

  • other:+6 added−3 removed

2 files+6 added−3 removed

modified:jinja2/ext.py+3 added-1 removed
101 unmodified lines
102 raise NotImplementedError()103104 def attr(self, name, lineno=None):105 """Return an attribute node for the current extension. This is useful106 to pass constants on extensions to generated template code::106 to pass constants on extensions to generated template code.107108 ::109110 self.attr('_my_attribute', lineno=lineno)111 """112 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)113
499 unmodified lines
modified:jinja2/sandbox.py+3 added-2 removed
96 unmodified lines
97 return rng9899100def unsafe(f):101 """102 Mark a function or method as unsafe::101 """Marks a function or method as unsafe.102103 ::104105 @unsafe106 def delete(self):107 pass108 """
253 unmodified lines