projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c6786
)
Implement _use_dep.__repr__(). Thanks to Douglass Anderson for the suggestion.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 30 Apr 2009 06:48:48 +0000
(06:48 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 30 Apr 2009 06:48:48 +0000
(06:48 -0000)
(trunk r13251)
svn path=/main/branches/2.1.6/; revision=13430
pym/portage/dep.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep.py
b/pym/portage/dep.py
index 803adde441159de15bd04260bd96b3ba2bf4788c..86625871511cae5dddd3ad622e9a726c540101cc 100644
(file)
--- a/
pym/portage/dep.py
+++ b/
pym/portage/dep.py
@@
-417,6
+417,9
@@
class _use_dep(object):
return ""
return "[%s]" % (",".join(self.tokens),)
+ def __repr__(self):
+ return "portage.dep._use_dep(%s)" % repr(self.tokens)
+
def evaluate_conditionals(self, use):
"""
Create a new instance with conditionals evaluated.