Commits

1st1  committed 3d49583

pep 362: remove unnecessary 'raise from None'

  • Participants
  • Parent commits 0877f62
  • Branches pep362

Comments (0)

Files changed (1)

File Lib/inspect.py

     if isinstance(obj, types.BuiltinFunctionType):
         # Raise a nicer error message for builtins
         msg = 'no signature found for builtin function {!r}'.format(obj)
-        raise ValueError(msg) from None
+        raise ValueError(msg)
 
     raise ValueError('callable {!r} is not supported by signature'.format(obj))