# HG changeset patch # User Matt Harbison # Date 1577490768 18000 # Node ID 6dbb18e1ac8d8d41a43f0ae4086d54eb974c9a65 # Parent 801b8d314791d31244f50aaec7c14efa4b5b0950 tests: avoid using a list comprehension to fill a list with fixed values Flagged by PyCharm as an unused assignment for the variable in the list. Differential Revision: https://phab.mercurial-scm.org/D7763 diff -r 801b8d314791 -r 6dbb18e1ac8d tests/test-cbor.py --- a/tests/test-cbor.py Fri Dec 27 18:21:41 2019 -0500 +++ b/tests/test-cbor.py Fri Dec 27 18:52:48 2019 -0500 @@ -1230,7 +1230,7 @@ True, False, None, - [None for i in range(128)], + [None] * 128, ] encoded = b''.join(cborutil.streamencode(source))