summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/parameters.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/oauth2/rfc6749/parameters.py')
-rw-r--r--oauthlib/oauth2/rfc6749/parameters.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/oauthlib/oauth2/rfc6749/parameters.py b/oauthlib/oauth2/rfc6749/parameters.py
index a3f9dd0..2bca4d2 100644
--- a/oauthlib/oauth2/rfc6749/parameters.py
+++ b/oauthlib/oauth2/rfc6749/parameters.py
@@ -15,6 +15,7 @@ import time
from oauthlib.common import add_params_to_qs, add_params_to_uri
from oauthlib.signals import scope_changed
+import urllib.parse as urlparse
from .errors import (InsecureTransportError, MismatchingStateError,
MissingCodeError, MissingTokenError,
@@ -22,11 +23,6 @@ from .errors import (InsecureTransportError, MismatchingStateError,
from .tokens import OAuth2Token
from .utils import is_secure_transport, list_to_scope, scope_to_list
-try:
- import urlparse
-except ImportError:
- import urllib.parse as urlparse
-
def prepare_grant_uri(uri, client_id, response_type, redirect_uri=None,
scope=None, state=None, **kwargs):