Skip to content
Myr

Fixed a threading issue with the LRUCache. Still not sure if I should release a Jinja 2.1.2 for that.

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent a5900d2 · Browse files · 1 file+7 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:jinja2/utils.py+7 added-1 removed
587 unmodified lines
588 Raise an `KeyError` if it does not exist.589 """590 rv = self._mapping[key]591 if self._queue[-1] != key:592 try:592 self._remove(key)593 self._remove(key)594 except:595 # if something removed the key from the container596 # when we read, ignore the ValueError that we would597 # get otherwise.598 pass599 self._append(key)600 return rv601602 def __setitem__(self, key, value):
152 unmodified lines