Author: fw
Date: 2008-05-31 20:32:27 +0000 (Sat, 31 May 2008)
New Revision: 8951

Modified:
   lib/python/debian_support.py
Log:
lib/python/debian_support.py: Fix PseudoEnum.__repr__ method


Modified: lib/python/debian_support.py
===================================================================
--- lib/python/debian_support.py        2008-05-31 20:32:17 UTC (rev 8950)
+++ lib/python/debian_support.py        2008-05-31 20:32:27 UTC (rev 8951)
@@ -148,7 +148,7 @@
         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 @@
     assert len(mergeAsSets([])) == 0
     assert ''.join(mergeAsSets("abc", "cb")) == "abc"
 
+    assert repr(internRelease("sid")) == "Release('sid')"
+
 if __name__ == "__main__":
     test()


_______________________________________________
Secure-testing-commits mailing list
Secure-testing-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/secure-testing-commits

Reply via email to