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

Fix error concat byte with string #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix error concat byte with string #47

wants to merge 1 commit into from

Conversation

titipata
Copy link

@titipata titipata commented Apr 15, 2018

The following error is raised in Python 3.6

    195         with open(filename, "wb") as f:
    196             f.write(base.encode('utf-8'))
--> 197             f.write('<script>' + js.encode('utf-8') + '</script>')
    198 
    199     @staticmethod

TypeError: must be str, not bytes

We have to state that <script> is binary.

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.

1 participant