[issue35570] 2to3 creates code using deprecated imp module

2018-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: It was decided in #21446 to only backport the change, labelled an enhancement, to 3.7 and it is now too late to challenge that decision as 3.6 only gets security fixes. -- nosy: +terry.reedy resolution: -> duplicate stage: -> resolved status: open

[issue35570] 2to3 creates code using deprecated imp module

2018-12-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this came up when the original version of fixer was added as noted in https://bugs.python.org/issue11797#msg206884 . Looking further this seems to be similar to https://bugs.python.org/issue21446 where it was fixed in 3.7 and master to use

[issue35570] 2to3 creates code using deprecated imp module

2018-12-23 Thread Hanno Boeck
New submission from Hanno Boeck : 2to3 (in python 3.6.6) will rewrite the reload function to use the imp module. However according to [1] "Deprecated since version 3.4: The imp package is pending deprecation in favor of importlib." Also running the code with warnings enabled will show a