From 267d41737711a3277869c61bde77009b5fea6315 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Wed, 4 Jun 2008 20:26:54 +0000 Subject: Fixed isinstance() check in dis.dis(). --- Lib/dis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" % -- cgit v0.12