bpo-38681: Enhance 2to3 conversion for blank line#17096
Conversation
…d future and itertools_imports fixers to use BlankLineOrPass instead of BlankLine.
…kLineOrPass conversion.
…d future and itertools_imports fixers to use BlankLineOrPass instead of BlankLine.
…kLineOrPass conversion.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Sorry, something went wrong.
isidentical
left a comment
There was a problem hiding this comment.
Looks great
Sorry, something went wrong.
Co-Authored-By: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
…thon into fix-issue-38681
Main changes
BlankLineOrPass, which replacesBlankLinein fix_future.py and fix_itertools_imports.py.reformattoFixerTestCase.checkfunction in test_fixers.py.Example 1
Code to be converted:
Before enhancement:
After enhancement:
Example 2
Code to be converted:
Before enhancement:
After enhancement:
https://bugs.python.org/issue38681