From patchwork Mon Dec 30 13:33:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7763: tests: avoid using a list comprehension to fill a list with fixed values From: phabricator X-Patchwork-Id: 44134 Message-Id: <675d1bad733f6d58c47c20d80d58d774@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 30 Dec 2019 13:33:32 +0000 Closed by commit rHG6dbb18e1ac8d: tests: avoid using a list comprehension to fill a list with fixed values (authored by mharbison72). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7763?vs=18994&id=19024 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7763/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7763 AFFECTED FILES tests/test-cbor.py CHANGE DETAILS To: mharbison72, #hg-reviewers, pulkit Cc: mercurial-devel diff --git a/tests/test-cbor.py b/tests/test-cbor.py --- a/tests/test-cbor.py +++ b/tests/test-cbor.py @@ -1230,7 +1230,7 @@ True, False, None, - [None for i in range(128)], + [None] * 128, ] encoded = b''.join(cborutil.streamencode(source))