summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-20 17:04:13 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-20 17:04:13 +0000
commit46229c938cc8b580d46674d2b83d713f95c28003 (patch)
tree132d7fae9389caa4209304dfd8edecf4c54144e4 /pym
parentMake Atom use str.__hash__. (diff)
downloadportage-idfetch-46229c938cc8b580d46674d2b83d713f95c28003.tar.gz
portage-idfetch-46229c938cc8b580d46674d2b83d713f95c28003.tar.bz2
portage-idfetch-46229c938cc8b580d46674d2b83d713f95c28003.zip
Make Atom use str.__eq__ and __ne__ also.
svn path=/main/trunk/; revision=10744
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index ba46a84b..8a895878 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -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