mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Of course, when the type of the argument to dis() is unsupported, it
should raise TypeError, not ValueError...
This commit is contained in:
parent
bd30795192
commit
00f86e6086
1 changed files with 1 additions and 1 deletions
|
@ -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__
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue