mirror of
https://github.com/python/cpython.git
synced 2025-01-27 11:33:55 +08:00
Fixed isinstance() check in dis.dis().
This commit is contained in:
parent
00709aaa3d
commit
267d417377
@ -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" %
|
||||
|
Loading…
Reference in New Issue
Block a user