0029-misc-fix-consider-using-in-pylint-error-56982.patch
src/authentic2/csv_import.py | ||
---|---|---|
298 | 298 | |
299 | 299 |
def __getitem__(self, header): |
300 | 300 |
for cell in self.cells: |
301 |
if cell.header == header or cell.header.name == header:
|
|
301 |
if header in (cell.header, cell.header.name):
|
|
302 | 302 |
return cell |
303 | 303 |
raise KeyError(header.name) |
304 | 304 |
src/authentic2/saml/common.py | ||
---|---|---|
378 | 378 |
liberty_provider = LibertyProvider.objects.get(entity_id=entity_id) |
379 | 379 |
except LibertyProvider.DoesNotExist: |
380 | 380 |
autoload = getattr(settings, 'SAML_METADATA_AUTOLOAD', 'none') |
381 |
if autoload and (autoload == 'sp' or autoload == 'both'):
|
|
381 |
if autoload in ('sp', 'both'):
|
|
382 | 382 |
liberty_provider = retrieve_metadata_and_create(request, entity_id, sp_or_idp) |
383 | 383 |
if not liberty_provider: |
384 | 384 |
return False |
385 |
- |