1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Replace unnecessary list comprehension - 'all' can take a generator

This commit is contained in:
Hugo
2017-12-07 13:37:33 +02:00
parent 6156271c48
commit 04fd730a08

View File

@@ -98,4 +98,4 @@ def _log_matches(r1, r2, matches):
def requests_match(r1, r2, matchers):
matches = [(m(r1, r2), m) for m in matchers]
_log_matches(r1, r2, matches)
return all([m[0] for m in matches])
return all(m[0] for m in matches)