| commit | d9455c186f53eb7b7eec98d2a53ecd3db812778e | [log] [tgz] |
|---|---|---|
| author | Armin Ronacher <armin.ronacher@active-4.com> | Mon Nov 29 12:39:11 2010 +0100 |
| committer | Armin Ronacher <armin.ronacher@active-4.com> | Mon Nov 29 12:39:11 2010 +0100 |
| tree | 812fc99cef0f488031037e9591e0c8fbb751c983 | |
| parent | 5661726123c9050806150ab51cbb2de3b801052c [diff] [blame] |
Fixed a typo and removed a useless backslash
diff --git a/jinja2/sandbox.py b/jinja2/sandbox.py index 55817be..0c9f573 100644 --- a/jinja2/sandbox.py +++ b/jinja2/sandbox.py
@@ -201,7 +201,7 @@ True. Override this method to alter the behavior, but this won't affect the `unsafe` decorator from this module. """ - return not (getattr(obj, 'unsafe_callable', False) or \ + return not (getattr(obj, 'unsafe_callable', False) or getattr(obj, 'alters_data', False)) def getitem(self, obj, argument):