diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2008-05-31 20:32:27 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2008-05-31 20:32:27 +0000 |
commit | 55b322f3e59fb30ca9f9025f8d4bf3a3346b31bc (patch) | |
tree | 318a60829ea702cdc81532d42177e385466c2254 /lib/python/debian_support.py | |
parent | 04905f89b057ba0da098f8bedcdd6bdaa8111c25 (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/python/debian_support.py')
-rw-r--r-- | lib/python/debian_support.py | 4 |
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() |