projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00709aa
)
Fixed isinstance() check in dis.dis().
author
Alexandre Vassalotti
<alexandre@peadrop.com>
Wed, 4 Jun 2008 20:26:54 +0000
(20:26 +0000)
committer
Alexandre Vassalotti
<alexandre@peadrop.com>
Wed, 4 Jun 2008 20:26:54 +0000
(20:26 +0000)
Lib/dis.py
patch
|
blob
|
history
diff --git
a/Lib/dis.py
b/Lib/dis.py
index 6d52694a75deddfae6ccbbe009c1d7369510577d..c98f0c0a8daf6fc6b82f95291c4ec9a1f8c1ca33 100644
(file)
--- 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" %