flask-oauth
flask-oauth copied to clipboard
Fix import urlparse for python 3
When I try to run my script with that code:
from flask_oauth import OAuth
oauth = OAuth()
then I get this error:
Traceback (most recent call last):
File "web_server.py", line 1, in <module>
from web import app
File "/path/web/__init__.py", line 5, in <module>
from web import auth
File "/path/web/auth.py", line 6, in <module>
from web.oauth import twitter
File "/path/oauth.py", line 1, in <module>
from flask_oauth import OAuth
File "/path/vendor/lib/python3.4/site-packages/flask_oauth.py", line 14, in <module>
from urlparse import urljoin
ImportError: No module named 'urlparse'
In python 3.4 module urlparse
became urllib.parse
. In this pull request I try to fix this.
+1
Just wrote the same before checking the pull requests. This is the only dependency failure right now for porting my Flask app.
+1
Duplicate of #67