Ticket #9644: locmem_key_error.diff
File locmem_key_error.diff, 646 bytes (added by , 16 years ago) |
---|
-
django/core/cache/backends/locmem.py
58 58 self._lock.reader_leaves() 59 59 self._lock.writer_enters() 60 60 try: 61 del self._cache[key] 62 del self._expire_info[key] 61 try: 62 del self._cache[key] 63 del self._expire_info[key] 64 except KeyError: 65 pass 63 66 return default 64 67 finally: 65 68 self._lock.writer_leaves()