diff options
-rw-r--r-- | pym/portage/dep.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 3d3b5d954..41d6b128b 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -19,6 +19,7 @@ # import re, sys, types +import weakref from itertools import chain import portage.exception from portage.exception import InvalidData, InvalidAtom @@ -412,7 +413,7 @@ class Atom(object): """ __metaclass__ = _AtomCache - _atoms = {} + _atoms = weakref.WeakValueDictionary() _str_methods = ("endswith", "find", "index", "lstrip", "replace", "startswith", "strip", "rindex", "rfind", "rstrip", "__getitem__", |