Author: guido.van.rossum
Date: Fri Nov 2 22:07:59 2007
New Revision: 58806
Modified:
python/branches/py3k-pep3137/Lib/test/test_descr.py
Log:
Fix test_descr.py.
(Only str_of_str_subclass() was broken, due to b2a_hex() issues.)
Modified: python/branches/py3k-pep3137/Lib/test/test_descr.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/test/test_descr.py (original)
+++ python/branches/py3k-pep3137/Lib/test/test_descr.py Fri Nov 2 22:07:59 2007
@@ -3145,7 +3145,7 @@
class octetstring(str):
def __str__(self):
- return str(binascii.b2a_hex(self))
+ return binascii.b2a_hex(self).decode("ascii")
def __repr__(self):
return self + " repr"
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins