D7763: tests: avoid using a list comprehension to fill a list with fixed values

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon Dec 30 08:33:32 EST 2019


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

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))



To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list