Skip to content

Commit

Permalink
Fixed urljoin import for Python 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Feb 26, 2016
1 parent 09ebf28 commit c8e6e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"""
import httplib2
from functools import wraps
from urlparse import urljoin
# urlparse module has been renamed in Python 3.x
try:
from urlparse import urljoin
except ImportError:
from urllib.parse import urljoin
from flask import request, session, json, redirect, Response
from werkzeug import url_decode, url_encode, url_quote, \
parse_options_header, Headers
Expand Down

0 comments on commit c8e6e19

Please sign in to comment.