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
Getting an issue in python 3.6 with the project.repository_blob function.
project.repository_blob
File "[blah blah blah]/lib/python3.6/site-packages/gitlab/v3/objects.py", line 1885, in repository_blob url += '?%s' % (urllib.urlencode({'filepath': filepath})) AttributeError: module 'urllib' has no attribute 'urlencode'
urlencode was moved in py3 to urllib.parse.urlencode (https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode). For maintaining compatibility across python 2 and 3, consider six's six.moves.urllib instead of urllib itself.
urllib.parse.urlencode
The text was updated successfully, but these errors were encountered:
Fixed in master #268
@gpocentek would be nice to get a new release on PyPI as well :)
Sorry, something went wrong.
Hah, I was just about to come back and close this 'cause yeah, definitely fixed on master.
I'm gonna leave it open though, y'all can close it when you've uploaded 0.21.2 or 0.22.0 or what have you.
0.21.2 has the fix.
No branches or pull requests
Getting an issue in python 3.6 with the
project.repository_blob
function.urlencode was moved in py3 to
urllib.parse.urlencode
(https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode). For maintaining compatibility across python 2 and 3, consider six's six.moves.urllib instead of urllib itself.The text was updated successfully, but these errors were encountered: