From 921ca4485c669fb76192a6529e7be6c9fc1512b0 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 20 Sep 2021 16:31:46 +0200 Subject: [PATCH 25/59] misc: fix consider-using-from-import pylint error (#56982) --- src/authentic2/idp/saml/backend.py | 5 ++--- src/authentic2/idp/saml/saml2_endpoints.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/authentic2/idp/saml/backend.py b/src/authentic2/idp/saml/backend.py index ebfe67a9..c6981d73 100644 --- a/src/authentic2/idp/saml/backend.py +++ b/src/authentic2/idp/saml/backend.py @@ -25,10 +25,9 @@ from django.template.loader import render_to_string from django.urls import reverse from django.utils.translation import ugettext as _ -import authentic2.idp.saml.saml2_endpoints as saml2_endpoints -import authentic2.saml.common as common -import authentic2.saml.models as models from authentic2.decorators import to_list +from authentic2.idp.saml import saml2_endpoints +from authentic2.saml import common, models from authentic2.utils.misc import Service diff --git a/src/authentic2/idp/saml/saml2_endpoints.py b/src/authentic2/idp/saml/saml2_endpoints.py index 873ee6ca..23b25b87 100644 --- a/src/authentic2/idp/saml/saml2_endpoints.py +++ b/src/authentic2/idp/saml/saml2_endpoints.py @@ -57,14 +57,14 @@ from django.views.decorators.cache import never_cache from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST -import authentic2.saml.saml2utils as saml2utils -import authentic2.views as a2_views from authentic2 import hooks +from authentic2 import views as a2_views from authentic2.attributes_ng.engine import get_attributes from authentic2.compat_lasso import lasso from authentic2.constants import NONCE_FIELD_NAME from authentic2.idp import signals as idp_signals from authentic2.idp.saml.common import kill_django_sessions +from authentic2.saml import saml2utils from authentic2.saml.common import ( AUTHENTIC_SAME_ID_SENTINEL, AUTHENTIC_STATUS_CODE_INTERNAL_SERVER_ERROR, -- 2.30.2