-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix smart_open deprecation warning globally #2530
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too wild. The upgrade will need a finer comb, more attention to particular instances, than this mechanical substitution.
I agree with @piskvorky that blindly find-replacing is not the way to go here. Let's come up with a more intelligent approach. You'll see most code accesses smart_open indirectly via the utils module. Perhaps we can contain the changes to that module? That will reduce the risk and make things easier to test. |
I can create |
Nah, I'm for replacing it everywhere, consistently, not only in I don't think the changeset will be so difficult to warrant some new wrappers. Most (all?) |
OK, I'll fix it later on and keep you posted |
@mpenkov @piskvorky is there anything else you want me to do in this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're still inconsistent about opening files. I think it's worth consolidating before we proceed with the PR.
In the future, please avoid squashing everything together and force-pushing during a review. It makes it difficult for the reviewer to manage the change set. Right now, it's impossible to distinguish code that I've reviewed already, and new code that you've pushed since the previous review. |
No problem, sorry about that |
OK, I think this is ready to merge. @piskvorky Do you have any objections? |
No objections, nice work @itayB ! This Gensim cleanup was long overdue. |
thanks @piskvorky ! |
Hi @mpenkov @piskvorky, I just want to make sure; Is there anything that you expect me to do or should I just wait for you to merge this? |
Please wait for us to merge. Thank you for your contribution and your patience. |
OK, merged. @itayB Thank you for taking care of this! |
Continued from #2528.
Fixes #2531, closes #2528.