Commit 00f86e60 authored by Guido van Rossum's avatar Guido van Rossum

Of course, when the type of the argument to dis() is unsupported, it

should raise TypeError, not ValueError...
parent bd307951
......@@ -14,7 +14,7 @@ def dis(x=None):
if hasattr(x, 'co_code'):
disassemble(x)
else:
raise ValueError, \
raise TypeError, \
"don't know how to disassemble %s objects" % \
type(x).__name__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment