Issue 27684: Incorrect exception message of ImportError constructor (original) (raw)
ImportError accepts name and path as keyword-only parameters, but when invalid keyword argument passed, it emits wrong exception message saying that ImportError does not take keyword arguments.
ImportError(name='name', path='path') ImportError() ImportError(foo=1) Traceback (most recent call last): File "", line 1, in TypeError: ImportError does not take keyword arguments
Propose a patch to fix this. Hope it helps.