Make Atom use str.__eq__ and __ne__ also.
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 17:04:13 +0000 (17:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 17:04:13 +0000 (17:04 -0000)
svn path=/main/trunk/; revision=10744

pym/portage/dep.py

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