Skip to content
Myr

fixed attribute lookup error with old style classes

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

--HG-- branch : trunk

authored by Christopher Grebs · committed by Christopher Grebs · parent e3290ea · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/environment.py+1 added-1 removed
311 unmodified lines
312 except AttributeError:313 pass314 try:315 return obj[attribute]316 except (TypeError, LookupError):316 except (TypeError, LookupError, AttributeError):317 return self.undefined(obj=obj, name=attribute)318319 def parse(self, source, name=None, filename=None):320 """Parse the sourcecode and return the abstract syntax tree. This
381 unmodified lines