bpo-39482: Add a fixer to handling abstract base classes#18245
bpo-39482: Add a fixer to handling abstract base classes#18245corona10 wants to merge 2 commits intopython:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18245 +/- ##
===========================================
+ Coverage 82.12% 83.19% +1.07%
===========================================
Files 1955 1571 -384
Lines 588711 414280 -174431
Branches 44382 44412 +30
===========================================
- Hits 483452 344670 -138782
+ Misses 95631 59968 -35663
- Partials 9628 9642 +14
Continue to review full report at Codecov.
|
aec65cf to
7cec2fa
Compare
|
@tirkarthi @benjimin @vstinner @rhettinger Dear core developers, |
|
This fixer drops compatibility with Python 2, right? Is it a good idea? I don't know. I stopped to use 2to3 a few years ago, since this tool adds many useless changes (to support early Python 3.x versions) and it drops support for Python 2. |
Yes, that's true and also a pain point.
I've often seen a use case using lib2to3 where the external network is blocked for security reason(e.g Privacy-related or sensitive financial systems), or someone just simply trying to convert with lib2to3 and use it. In the latter case, they didn't expect much of the conversion quality of lib2to3. They just wanted to check how much the code is needed to change. This change would be helpful for them. |
|
bpo-40360 is now talking about deprecating lib2to3. So thie PR might be not needed. :) |
https://bugs.python.org/issue39482