You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that it's not possible to save a file when rodeo is run with Python 3.4 at the moment:
Traceback (most recent call last):
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/ogrisel/venvs/py34/lib/python3.4/site-packages/rodeo/rodeo.py", line 60, in save_file
f.write(request.form['source'])
TypeError: 'str' does not support the buffer interface
To make the code behave consistently under both Python 2 and Python 3, it would be neat to be able to use the http://python-future.org:
It seems that it's not possible to save a file when rodeo is run with Python 3.4 at the moment:
To make the code behave consistently under both Python 2 and Python 3, it would be neat to be able to use the http://python-future.org:
http://python-future.org/compatible_idioms.html#strings-and-bytes
http://python-future.org/what_else.html#open
WDYT? Would you accept pull request that would make the
future
package a dependency for the rodeo project?The text was updated successfully, but these errors were encountered: