Skip to content
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

Fixed string encoding for WebPlugin webapp.py for Python3 #478

Open
wants to merge 2 commits into
base: ete3
Choose a base branch
from

Conversation

Dfupa
Copy link

@Dfupa Dfupa commented Oct 1, 2020

Background: Some of the intended functionality of ete3's webplugin app wasn't working properly (the WebTreeAplication's call function)

After some digging, I found out that the issue had to do with string encoding (as the native string is bytes for python2 and text for python3: https://portingguide.readthedocs.io/en/latest/strings.html) provided WSGI applications are required to yield bytes objects: Str in Python2 and bytes in Python3

My code solutions were rather simple but I tried to fix (most of) the encoding errors I was able to pinpoint through my testing.

Fixing Python3 encoding incompatibilities.
Reorganizing a bit of the code as well as fix some minor errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant