-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
ZOOKEEPER-3771: Update zk-merge-pr script to Python3 #1295
Conversation
I will be happy to try out this patch for my next use of the script |
can we keep the original file and add a new zk-merge-pr.py3 ? |
@eolivelli i'd prefer a |
Ok |
Great work @tisonkun ! |
Hi @anmolnar ! Here is part of the original mail
I can see one of the reasons we still have a py2 script is that possibly some of our committers still use py2 so that they can easily use the py2 script which keeps previous workflow. Though, a community lazy agreement might help on dropping it. |
I agree with @tisonkun |
I voted for v3 only on the mail list, but I agree we could keep v2 for a time, but maybe add a warning when script starts that it is deprecated? |
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.
{code}
commit_title = input("Commit title [%s]: " % pr_title.encode("utf-8")).decode("utf-8")
{code}
Doesn't work, no need to decode str in v3 anyomre, it throws an error. Might be other occurrences, please check. Thanks!
edit: removing just the decode only here worked for me, I managed to commit with python3 after this.
@nkalmar Thanks for your review and test. That is the only |
This looks good to me - super happy for py3 support. |
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.
LGTM, thanks @tisonkun !
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes #1295 from TisonKun/patch-1 (cherry picked from commit a4c97d2) Signed-off-by: Norbert Kalmar <[email protected]>
Merged to master and branch-3.6 (branch-3.5 does not have the script in the repo). Thanks @tisonkun ! |
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes apache#1295 from TisonKun/patch-1
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes apache#1295 from TisonKun/patch-1
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes apache#1295 from TisonKun/patch-1
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes apache#1295 from TisonKun/patch-1
eolivelli generally I use `2to3` util and check the codepath that I can arrive, manually fix some lines. But it seems we can verify this patch totally when merging this patch :) Author: tison <[email protected]> Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar <[email protected]> Closes apache#1295 from TisonKun/patch-1
@eolivelli generally I use
2to3
util and check the codepath that I can arrive, manually fix some lines.But it seems we can verify this patch totally when merging this patch :)