diff options
author | Guido van Rossum <guido@python.org> | 1997-01-17 20:08:18 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-17 20:08:18 +0000 |
commit | d964f2ab96bdfac1f064bf384abc964c02c83686 (patch) | |
tree | d30e2fa4d7da68fb1595adf8ccec307c9eecc5a8 /Lib/dis.py | |
parent | 1f38ceacb6c8e2f40676fb78472011d896174e7c (diff) | |
download | cpython-d964f2ab96bdfac1f064bf384abc964c02c83686.tar.gz |
Of course, when the type of the argument to dis() is unsupported, it
should raise TypeError, not ValueError...
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 50e6c1dbb8..3957f9cf8b 100644 --- a/Lib/dis.py +++ b/Lib/dis.py @@ -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__ |