The repr of standard exceptions usually looks as exception constructor used for creating that exception. But the repr of ImportError misses keyword arguments name and path.
>>> ImportError('test', name='somename', path='somepath')
ImportError('test',)
Proposed patch make the repr of ImportError containing keyword arguments.
>>> ImportError('test', name='somename', path='somepath')
ImportError('test', name='somename', path='somepath')
I don't know how to classify this issue and whether the patch should be backported. |