Fix errors Perforce post error when running under Python 3
Review Request #11061 — Created June 27, 2020 and submitted
Python 3
string
must be encoded tobytes
before being fed top4
.
Manually verified on Windows, Linux, and macOS that this resolves the error we were hitting when using Python 3.
Manually verified that this also still works fine for the same scenario when using Python 2.
Summary | ID | Author |
---|---|---|
5e3549a2cdc678c1568f504b0132770c0660c3e9 | Chris Otey | |
37f47cb835072ec6f23393251a765388f655cf6e | Keith Kelly | |
d74578c286a089bb47a13d94c2aa820408ecf7b9 | Keith Kelly |
Description | From | Last Updated |
---|---|---|
Hi Kelly. I saw your post on the pull request thread. We don't use GitHub for anything more than storing … |
chipx86 |
-
-
Hi Kelly.
I saw your post on the pull request thread. We don't use GitHub for anything more than storing the source code repositories, so communication about a review request is best done here.
I took a look at this last week and it we will be landing it shortly. It does conflict with some work we're doing that also addresses the same problem (fixed by moving the raw
Popen()
calls to use our commonexecute()
method, adding the ability for raw input at the same time, sinceexecute()
knows about encoding differences), but I want to make sure you receive credit for the fix, so we'll be landing this first.As for why it appears to have not had any traction, it's just that we're not in release mode yet for the next patch release for RBTools (that will be coming up in about a week). We've also been busy between the 3.0.18 release, upcoming 4.0 beta, and taking care of some requirements from our support contract customers. It'll be in soon, though.