Fixed isinstance() check in dis.dis().

This commit is contained in:
Alexandre Vassalotti 2008-06-04 20:26:54 +00:00
parent 00709aaa3d
commit 267d417377

View File

@ -35,7 +35,7 @@ def dis(x=None):
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" %