D7763: tests: avoid using a list comprehension to fill a list with fixed values
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sat Dec 28 03:04:54 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Flagged by PyCharm as an unused assignment for the variable in the list.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list