diff options
author | Guido van Rossum <guido@python.org> | 1997-01-17 20:08:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-17 20:08:18 (GMT) |
commit | 00f86e6086444b94653d0fb01f2fa18e9a24f59a (patch) | |
tree | 44e818fadc728e5f82dea6b15a2b6882362932ef /Lib | |
parent | bd30795192f1e74ef1fae06eefc1f225193f49fb (diff) | |
download | cpython-00f86e6086444b94653d0fb01f2fa18e9a24f59a.zip cpython-00f86e6086444b94653d0fb01f2fa18e9a24f59a.tar.gz cpython-00f86e6086444b94653d0fb01f2fa18e9a24f59a.tar.bz2 |
Of course, when the type of the argument to dis() is unsupported, it
should raise TypeError, not ValueError...
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/dis.py | 2 |
1 files changed, 1 insertions, 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__ |