diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:26:54 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:26:54 +0000 |
commit | 267d41737711a3277869c61bde77009b5fea6315 (patch) | |
tree | cf4e5e751e6c11c8c55d34fe7da8d7daac445526 /Lib/dis.py | |
parent | 00709aaa3dc7da374e94a3ede8e05603e8a95066 (diff) | |
download | cpython-git-267d41737711a3277869c61bde77009b5fea6315.tar.gz |
Fixed isinstance() check in dis.dis().
Diffstat (limited to 'Lib/dis.py')
-rw-r--r-- | Lib/dis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py index 6d52694a75..c98f0c0a8d 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" % |