summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2008-05-31 20:32:27 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2008-05-31 20:32:27 +0000
commit7d6f451ccc30c9de8ebc786c654a129f33e2fd1e (patch)
treee36ae6facf37157a83d0855b67077840cd34bf49 /lib
parent6f2940f45ce9f890973314e3437f38eb28a2a363 (diff)
lib/python/debian_support.py: Fix PseudoEnum.__repr__ method
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@8951 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/debian_support.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/debian_support.py b/lib/python/debian_support.py
index eb16311b25..827a7a49fb 100644
--- a/lib/python/debian_support.py
+++ b/lib/python/debian_support.py
@@ -148,7 +148,7 @@ class PseudoEnum:
self._name = name
self._order = order
def __repr__(self):
- return '%s(%s)'% (self.__class__._name__, `name`)
+ return '%s(%s)'% (self.__class__.__name__, `self._name`)
def __str__(self):
return self._name
def __cmp__(self, other):
@@ -433,5 +433,7 @@ def test():
assert len(mergeAsSets([])) == 0
assert ''.join(mergeAsSets("abc", "cb")) == "abc"
+ assert repr(internRelease("sid")) == "Release('sid')"
+
if __name__ == "__main__":
test()

© 2014-2024 Faster IT GmbH | imprint | privacy policy