Skip to content

Commit

Permalink
fix RuntimeError in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Hinghaus committed May 8, 2019
1 parent 5bd7f11 commit 988f2d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -10,6 +10,8 @@ Changelog

- Add support for Python 3.7.

- Avoid RuntimeError in _takeOutGarbage. See `issue 7
<https://github.com/zopefoundation/tempstorage/issues/7>`_.

4.0.1 (2017-11-27)
------------------
Expand Down
1 change: 1 addition & 0 deletions src/tempstorage/TemporaryStorage.py
Expand Up @@ -324,6 +324,7 @@ def _takeOutGarbage(self, oid):
for k in self._conflict_cache.keys():
if k[0] == oid:
del self._conflict_cache[k]
break

# Remove/decref references
roids = self._oreferences.get(oid, [])
Expand Down

0 comments on commit 988f2d9

Please sign in to comment.