summaryrefslogtreecommitdiff
path: root/src/saml2/population.py
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2021-11-24 01:31:00 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2021-11-24 01:57:39 +0200
commit79ae7112547e6b386fe27f5fc57e02b4220d6872 (patch)
treef018d3a70ac90db11adcce73f0b53c85740ff209 /src/saml2/population.py
parent72e69e43f555e3f37e8a21a89ac1f34402700a31 (diff)
downloadpysaml2-79ae7112547e6b386fe27f5fc57e02b4220d6872.tar.gz
Linter fixes
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/population.py')
-rw-r--r--src/saml2/population.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saml2/population.py b/src/saml2/population.py
index 7b3ffd39..37b36352 100644
--- a/src/saml2/population.py
+++ b/src/saml2/population.py
@@ -35,8 +35,9 @@ class Population(object):
:param sources: Sources for information about the subject
:return:
"""
- if not sources: # assume that all the members has be asked
- # once before, hence they are represented in the cache
+ if not sources:
+ # assume that all the members has be asked
+ # once before, hence they are represented in the cache
sources = self.cache.entities(name_id)
sources = [m for m in sources if not self.cache.active(name_id, m)]
return sources