-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
bpo-35282: Add a return value to lib2to3.refactor_file and refactor_dir #10618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
martindemello
wants to merge
6
commits into
python:main
from
martindemello:lib2to3-refactor-return-value
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d2434e4
add a return value to lib2to3.refactor_file and refactor_dir
martindemello db507c5
fix indent
martindemello 8761684
add news
martindemello 34cac64
fix rst
martindemello f6e22ef
fix rst issue
martindemello b2015a8
document return value of refactor_file
martindemello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Misc/NEWS.d/next/Library/2018-11-20-14-31-36.bpo-35282.uimIBv.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Added return values to lib2to3.refactor functions. | ||
|
|
||
| :func:`lib2to3.refactor.refactor_file` now returns a status: | ||
|
|
||
| * True: The file was written to. | ||
| * False: The file was not written to. | ||
| * None: The file could not be read. | ||
|
|
||
| :func:`lib2to3.refactor.refactor_dir` now returns a list of all written | ||
| files. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.