summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 6d52694..c98f0c0 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -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" %