Projet

Général

Profil

0035-misc-fix-use-dict-literal-pylint-error-56982.patch

Valentin Deniaud, 21 septembre 2021 17:09

Télécharger (1,33 ko)

Voir les différences:

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(-)
src/authentic2/data_transfer.py
196 196
        self._attributes = None
197 197
        self._permissions = None
198 198

  
199
        self._role_d = dict()
199
        self._role_d = {}
200 200
        for key, value in d.items():
201 201
            if key == 'parents':
202 202
                self._parents = value
src/authentic2/saml/saml2utils.py
387 387

  
388 388

  
389 389
def get_attributes_from_assertion(assertion, logger):
390
    attributes = dict()
390
    attributes = {}
391 391
    if not assertion:
392 392
        return attributes
393 393
    for att_statement in assertion.attributeStatement:
394
-