Skip to content
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

bpo-39290: Add support for import_as_names for traverse_imports #17944

Closed
wants to merge 1 commit into from

Conversation

isidentical
Copy link
Sponsor Member

@isidentical isidentical commented Jan 10, 2020

@encukou
Copy link
Member

encukou commented Jan 14, 2020

Could you also add a test for this?

(Note: the suggested reviewers were autoselected by the import keyword, and might not know too much about this part of the stdlib. Adding Benjamin as the lib2to3 expert.)

Copy link
Member

@brettcannon brettcannon left a comment

Please add tests.

@bedevere-bot
Copy link

bedevere-bot commented Jan 22, 2020

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@isidentical
Copy link
Sponsor Member Author

isidentical commented Feb 16, 2020

This is a nice to have feature for outside usages but unfortunately, the current test suite doesn't offer a direct way to test it with the given interface of fixers.

Also, I am now reconsidering if this suits the concept of lib2to3 fixers and their public utilities. @benjaminp what do you think about supporting these symbols in the fixer for outside usages (e.g: packages like unimport) ?

@encukou encukou removed their request for review Feb 18, 2020
@isidentical isidentical requested a review from pablogsal Apr 22, 2020
@isidentical
Copy link
Sponsor Member Author

isidentical commented May 15, 2020

[closing as this was an nice-to-have enhancement, and lib2to3 will be deprecated soon and this will probably not going to be in time for 3.9]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants