-
Notifications
You must be signed in to change notification settings - Fork 109
Catch potential decode errors on stdout and stderr #110
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
Conversation
|
Thanks for your PR! Were you getting any errors? On Python 3+ we get We should probably add a comment in the stdout/stderr functions to document this subtlety though |
|
I am using the Windows version of |
|
That's good to know. That might very well be the cause. |
|
I also ran into this same problem myself with the Windows version of gitless. The root cause is that the pbs 0.110 python package is not compatible with the changes introduced to the str class in Python 3+. On my machine, I modified the pbs.by contents directly to make gitless work on my Windows environment. File C:\Program Files\Python36\Lib\site-packages\pbs.py: Sincerely, |
|
Relates to #146 |
|
Should I go ahead and merge this? Does this fix the problems on Windows + Python 3? It seems to be a no-op if you are not on Windows, does it break things on Windows + Python 2? Now that we have appveyor setup we could have it run the checks and see if it breaks the build. @breisfeld could you merge with Also, I've changed the license to MIT since you've opened the PR, are you ok with contributing your change under the new license? Thank you! |
|
I don't think that I have the required permission to do a merge. Perhaps you should do it. |
|
done! thanks |
On Python 3+, the
strtype has no methoddecode, so includetry/exceptclauses.