diff --git a/flask_oauth.py b/flask_oauth.py index b21105a..dc10875 100644 --- a/flask_oauth.py +++ b/flask_oauth.py @@ -10,7 +10,10 @@ """ import httplib2 from functools import wraps -from urlparse import urljoin +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