summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-06 04:56:17 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-06 04:56:17 +0000
commitdb5a184774f995880718f07b0a4388cfb65e0773 (patch)
tree9ffcb6721e2b25a3e602650f2488c00307e8f4bd
parent866b553f115237a1c0312722e842a2840efe0a05 (diff)
downloadportage-db5a184774f995880718f07b0a4388cfb65e0773.tar.gz
portage-db5a184774f995880718f07b0a4388cfb65e0773.tar.bz2
portage-db5a184774f995880718f07b0a4388cfb65e0773.zip
In Atom.__setattr__(), include inputs in case it helps for debugging with
derived classes. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=11813
-rw-r--r--pym/portage/dep.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index bcfe63c45..c17602117 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -566,7 +566,8 @@ class Atom(object):
return -1
def __setattr__(self, name, value):
- raise AttributeError("Atom instances are immutable")
+ raise AttributeError("Atom instances are immutable",
+ self.__class__, name, value)
def get_operator(mydep):
"""