simplify path_satisfied test

This commit is contained in:
James Kasten
2015-03-24 16:21:09 -07:00
parent 26ec3cfcea
commit 8e3a496b8b
+2 -3
View File
@@ -203,9 +203,8 @@ class AuthHandler(object): # pylint: disable=too-many-instance-attributes
def _path_satisfied(self, dom):
"""Returns whether a path has been completely satisfied."""
return all(
self.responses[dom][i] is not None and
self.responses[dom][i] is not False for i in self.paths[dom])
# Make sure that there are no 'None' or 'False' entries along path.
return all(self.responses[dom][i] for i in self.paths[dom])
def _get_chall_pref(self, domain):
"""Return list of challenge preferences.