Skip to content
Myr

Fixed a name error for an uncommon attribute access in the sandbox

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 d3b456f · Browse files · 2 files+9 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

2 files+9 added−1 removed

  • other:+9 added−1 removed

2 files+9 added−1 removed

modified:jinja2/sandbox.py+1 added-1 removed
204 unmodified lines
205 elif hasattr(types, 'CoroutineType') and isinstance(obj, types.CoroutineType):206 if attr in UNSAFE_COROUTINE_ATTRIBUTES:207 return True208 elif hasattr(types, 'AsyncGeneratorType') and isinstance(obj, types.AsyncGeneratorType):209 if attri in UNSAFE_ASYNC_GENERATOR_ATTRIBUTES:209 if attr in UNSAFE_ASYNC_GENERATOR_ATTRIBUTES:210 return True211 return attr.startswith('__')212213
267 unmodified lines
modified:CHANGES+8 added
1Jinja2 Changelog2================34Version 2.8.25-------------67(bugfix release, unreleased)89- Fixed a runtime error in the sandbox when attributes of async generators10 were accessed.1112Version 2.8.113-------------1415(bugfix release, released on December 29th 2016)
372 unmodified lines