Skip to content

Commit

Permalink
make import urlparse compatible with python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Frust committed Apr 18, 2017
1 parent 32d7884 commit 72ccedf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shibboleth_authenticator/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

from __future__ import absolute_import, print_function

from urllib.parse import urlparse

from flask import (Blueprint, abort, current_app, make_response, redirect,
request)
from itsdangerous import TimedJSONWebSignatureSerializer
Expand All @@ -30,6 +28,13 @@

from .handlers import authorized_signup_handler

try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse



blueprint = Blueprint(
'shibboleth_authenticator',
__name__,
Expand Down

0 comments on commit 72ccedf

Please sign in to comment.