diff --git a/Lib/dis.py b/Lib/dis.py index 50e6c1dbb8d2..3957f9cf8bc8 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__