Commit 47fb0990 authored by Matt Harbison's avatar Matt Harbison
Browse files

annotate: 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/D7753
parent 3622f4fafd35
......@@ -559,7 +559,7 @@ def annotate(ui, repo, *pats, **opts):
ml = max(sizes)
formats.append([sep + b' ' * (ml - w) + b'%s' for w in sizes])
else:
formats.append([b'%s' for x in l])
formats.append([b'%s'] * len(l))
pieces.append(l)
for f, p, n in zip(zip(*formats), zip(*pieces), lines):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment