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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user