[Python-3000-checkins] r63947 - python/branches/py3k/Lib/dis.py
alexandre.vassalotti
python-3000-checkins at python.org
Wed Jun 4 22:26:54 CEST 2008
Author: alexandre.vassalotti
Date: Wed Jun 4 22:26:54 2008
New Revision: 63947
Log:
Fixed isinstance() check in dis.dis().
Modified:
python/branches/py3k/Lib/dis.py
Modified: python/branches/py3k/Lib/dis.py
==============================================================================
--- python/branches/py3k/Lib/dis.py (original)
+++ python/branches/py3k/Lib/dis.py Wed Jun 4 22:26:54 2008
@@ -35,7 +35,7 @@
print()
elif hasattr(x, 'co_code'):
disassemble(x)
- elif isinstance(x, str):
+ elif isinstance(x, (bytes, bytearray)):
disassemble_string(x)
else:
raise TypeError("don't know how to disassemble %s objects" %
More information about the Python-3000-checkins
mailing list