From 711de36ae7cf5f3404c9f54baddf783697a7e57e Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 28 Jan 2015 17:01:40 -0300 Subject: [PATCH] optimizing imports --- openid_provider/lib/endpoints/authorize.py | 7 ++++--- openid_provider/lib/endpoints/userinfo.py | 6 +++--- openid_provider/views.py | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/openid_provider/lib/endpoints/authorize.py b/openid_provider/lib/endpoints/authorize.py index 2a9dbd5..49ade1d 100644 --- a/openid_provider/lib/endpoints/authorize.py +++ b/openid_provider/lib/endpoints/authorize.py @@ -4,9 +4,10 @@ from datetime import timedelta from django.utils import timezone -from openid_provider.lib.errors import * -from openid_provider.lib.utils.params import * -from openid_provider.lib.utils.token import * +from ..errors import * +from ..utils.params import * +from ..utils.token import * + from openid_provider.models import * diff --git a/openid_provider/lib/endpoints/userinfo.py b/openid_provider/lib/endpoints/userinfo.py index 4e4c7be..4a24368 100644 --- a/openid_provider/lib/endpoints/userinfo.py +++ b/openid_provider/lib/endpoints/userinfo.py @@ -6,9 +6,9 @@ try: # JsonResponse is only available in Django > 1.7 except ImportError: from ..utils.http import JsonResponse -from openid_provider.lib.errors import * -from openid_provider.lib.scopes import * -from openid_provider.lib.utils.params import * +from ..errors import * +from ..scopes import * +from ..utils.params import * from openid_provider.models import * diff --git a/openid_provider/views.py b/openid_provider/views.py index 68acc23..8311321 100644 --- a/openid_provider/views.py +++ b/openid_provider/views.py @@ -10,10 +10,10 @@ from django.shortcuts import render from django.views.decorators.http import require_http_methods from django.views.generic import View -from openid_provider.lib.errors import * -from openid_provider.lib.endpoints.authorize import * -from openid_provider.lib.endpoints.token import * -from openid_provider.lib.endpoints.userinfo import * +from .lib.errors import * +from .lib.endpoints.authorize import * +from .lib.endpoints.token import * +from .lib.endpoints.userinfo import * class AuthorizeView(View):