You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tools/i18n/pygettext.py: replace deprecated imp module with importlib #70826
Activity
vstinner commentedon Mar 25, 2016
Attached patch replaces the imp module with importlib in Tools/i18n/pygettext.py.
Please review carefully, it looks like the code getting the filename of a Python module is not tested by Lib/test/test_tools.py :-/
vstinner commentedon Mar 30, 2016
See also the issue bpo-20021 '"modernize" makeopcodetargets.py"' (now closed).
vstinner commentedon Apr 12, 2016
Can someone please review pygettext_imp.patch?
(I send a ping since Roundup email notifications were broken recently.)
berkerpeksag commentedon Apr 12, 2016
pygettext_imp.patch looks good to me. I left a comment on Rietveld.
python-dev commentedon Apr 12, 2016
New changeset cd03ff74eaea by Victor Stinner in branch 'default':
Update pygettext.py to get ride of imp
https://hg.python.org/cpython/rev/cd03ff74eaea
vstinner commentedon Apr 12, 2016
Thanks for the review.
Oops, I added it but then inlined the function in caller sites. I removed the now empty function :-)