commit | 00f86e6086444b94653d0fb01f2fa18e9a24f59a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jan 17 20:08:18 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jan 17 20:08:18 1997 +0000 |
tree | 44e818fadc728e5f82dea6b15a2b6882362932ef | |
parent | bd30795192f1e74ef1fae06eefc1f225193f49fb [diff] |
Of course, when the type of the argument to dis() is unsupported, it should raise TypeError, not ValueError...
diff --git a/Lib/dis.py b/Lib/dis.py index 50e6c1d..3957f9c 100644 --- a/Lib/dis.py +++ b/Lib/dis.py
@@ -14,7 +14,7 @@ if hasattr(x, 'co_code'): disassemble(x) else: - raise ValueError, \ + raise TypeError, \ "don't know how to disassemble %s objects" % \ type(x).__name__