diff hgext/convert/hg.py @ 52642:73ab542565e0

pyupgrade: run the `unpack_list_comprehension` fixer This probably doesn't matter much, but it reduces the noise when running the tool in the future.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 05 Jan 2025 22:12:02 -0500
parents 4c70a70a9bcd
children
line wrap: on
line diff
--- a/hgext/convert/hg.py	Sun Jan 05 22:00:40 2025 -0500
+++ b/hgext/convert/hg.py	Sun Jan 05 22:12:02 2025 -0500
@@ -697,7 +697,7 @@
         else:
             i = i or 0
             ma, r = self._changedfiles(parents[i], ctx)
-        ma, r = [[f for f in l if f not in self.ignored] for l in (ma, r)]
+        ma, r = ([f for f in l if f not in self.ignored] for l in (ma, r))
 
         if i == 0:
             self._changescache = (rev, (ma, r))