0035-misc-fix-use-dict-literal-pylint-error-56982.patch
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 |
- |