Make Atom use str.__hash__.
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 16:59:56 +0000 (16:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 16:59:56 +0000 (16:59 -0000)
svn path=/main/trunk/; revision=10743

pym/portage/dep.py

index bd9b19677e693e59992d9ae81ad8ceabf04a7499..ba46a84befaaf67075a6c8f539a92881bc99b87c 100644 (file)
@@ -416,7 +416,7 @@ class Atom(object):
 
        _str_methods = ("endswith", "find", "index", "lstrip", "replace",
                "startswith", "strip", "rindex", "rfind", "rstrip", "__getitem__",
-               "__len__", "__repr__", "__str__")
+               "__hash__", "__len__", "__repr__", "__str__")
 
        __slots__ = ("__weakref__", "blocker", "cp", "cpv", "operator",
                "slot", "string", "use") + _str_methods