-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Backport translator comment PR to 3.2 #41859
Conversation
@@ -100,7 +220,7 @@ def process_file(f, fname): | |||
print("Updating the editor.pot template...") | |||
|
|||
for fname in matches: | |||
with open(fname, "r") as f: | |||
with open(fname, "r", encoding="utf8") as f: |
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 will break Python 2 compatibility, you should use open_utf8
from our compat.py
(import compat
).
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.
Ah nevermind, this is not part of the buildsystem so it doesn't matter.
But might be worth bumping the shebang to python3
then.
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.
Ahh ok. Didn't see your msg. I will revert the changes.
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.
@akien-mga You want me to change to #!/usr/bin/env python3
? I didn't understand the shebang part until now.
The /usr/bin/env
part I refer from this discussion.
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.
Yeah that works fine.
5f35f42
to
4364b17
Compare
4364b17
to
1ba5917
Compare
Thanks! |
Backport PR #41510 to 3.2 branch.