This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients brett.cannon, xiang.zhang
Date 2016-08-04.16:37:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1470328650.69.0.0456485191226.issue27684@psf.upfronthosting.co.za>
In-reply-to
Content
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 "<stdin>", line 1, in <module>
TypeError: ImportError does not take keyword arguments

Propose a patch to fix this. Hope it helps.
History
Date User Action Args
2016-08-04 16:37:30xiang.zhangsetrecipients: + xiang.zhang, brett.cannon
2016-08-04 16:37:30xiang.zhangsetmessageid: <1470328650.69.0.0456485191226.issue27684@psf.upfronthosting.co.za>
2016-08-04 16:37:30xiang.zhanglinkissue27684 messages
2016-08-04 16:37:30xiang.zhangcreate