We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code gives an error with Python 3.3:
def set_cache(base, gist_id, body, filename=None): with open(cache_filename(base, gist_id, filename), 'w') as f: f.write(body)
Error: "TypeError: must be str, not bytes"
The call to open needs to specify 'wb'.
open
The text was updated successfully, but these errors were encountered:
e46ed31
Cool, I should have fixed this with the just released version 0.3.0. Let me know if you see that it doesn't work for you.
Sorry, something went wrong.
No branches or pull requests
The following code gives an error with Python 3.3:
Error: "TypeError: must be str, not bytes"
The call to
open
needs to specify 'wb'.The text was updated successfully, but these errors were encountered: