-
Notifications
You must be signed in to change notification settings - Fork 36
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
LoggingThread fails on Python 3 #66
Comments
rohanpm
added a commit
to rohanpm/kobo
that referenced
this issue
Jan 7, 2019
Looking at the implementation of upload_task_log, it expects to receive bytes as input, not text. Hence, the appropriate file-like object is BytesIO, not StringIO. Fixes release-engineering#66
yontalcar
added a commit
to yontalcar/kobo
that referenced
this issue
May 29, 2019
Fixed several Py2 str -> Py3 bytes issues. Related: release-engineering#66 Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
yontalcar
added a commit
to yontalcar/kobo
that referenced
this issue
May 30, 2019
Fixed several Py2 str -> Py3 bytes issues. Related: release-engineering#66 Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
rohanpm
pushed a commit
to yontalcar/kobo
that referenced
this issue
Jun 4, 2019
Fixed several Py2 str -> Py3 bytes issues. Related: release-engineering#66 Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LoggingThread
fails on Python 3 due to encoding errors.It fails on Python 3 because string.encode returns a bytes-like object and StringIO should receive an str object.
The text was updated successfully, but these errors were encountered: