bpo-20844: open script file with "rb" mode#12616
Conversation
|
OK, AppVeyor failed on added test: Same fail on Azure x86 and amd64 |
|
Should revert some of this change (git commit 815b41b) in issue20731? Eryk Sun mentioned it in msg221134. |
|
Eryk Sun said in msg273110:
Not sure whether this advice is needed. |
I will backport this change to 3.7 branch. So I want to keep patch simple, safe, and no regression. |
|
Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
Sorry, @methane, I could not cleanly backport this to |
|
GH-12647 is a backport of this pull request to the 3.7 branch. |
On Unix, this doesn't have any effect.
On Windows, "r" mode will cause error on
ftell.https://bugs.python.org/issue20844