From: Hugo Date: Thu, 7 Dec 2017 11:37:33 +0000 (+0200) Subject: Replace unnecessary list comprehension - 'all' can take a generator X-Git-Tag: v1.12.0~6^2~9 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=04fd730a0850e189ee4471cd4866edbf35f2f1be;p=vcrpy.git Replace unnecessary list comprehension - 'all' can take a generator --- diff --git a/vcr/matchers.py b/vcr/matchers.py index f2029a8..ad04a45 100644 --- a/vcr/matchers.py +++ b/vcr/matchers.py @@ -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)