From 748fff2c90b7274653da9106ee8b9eeb174a615f Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 21 Sep 2021 10:34:57 +0200 Subject: [PATCH 35/59] misc: fix use-dict-literal pylint error (#56982) --- src/authentic2/data_transfer.py | 2 +- src/authentic2/saml/saml2utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentic2/data_transfer.py b/src/authentic2/data_transfer.py index 0f11e5e5..9e3db6d9 100644 --- a/src/authentic2/data_transfer.py +++ b/src/authentic2/data_transfer.py @@ -196,7 +196,7 @@ class RoleDeserializer: self._attributes = None self._permissions = None - self._role_d = dict() + self._role_d = {} for key, value in d.items(): if key == 'parents': self._parents = value diff --git a/src/authentic2/saml/saml2utils.py b/src/authentic2/saml/saml2utils.py index da225b4f..3b545400 100644 --- a/src/authentic2/saml/saml2utils.py +++ b/src/authentic2/saml/saml2utils.py @@ -387,7 +387,7 @@ def authnresponse_checking(login, subject_confirmation, logger, saml_request_id= def get_attributes_from_assertion(assertion, logger): - attributes = dict() + attributes = {} if not assertion: return attributes for att_statement in assertion.attributeStatement: -- 2.30.2