hgext/remotefilelog/repack.py
changeset 42057 566daffc607d
parent 41806 118c1ec4f31b
child 42497 df1419c5756a
--- a/hgext/remotefilelog/repack.py	Wed Jul 19 13:17:49 2017 -0700
+++ b/hgext/remotefilelog/repack.py	Wed Apr 03 11:21:27 2019 -0700
@@ -154,9 +154,9 @@
 
     # Either an oversize index or datapack will trigger cleanup of the whole
     # pack:
-    oversized = set([os.path.splitext(path)[0] for path, ftype, stat in files
+    oversized = {os.path.splitext(path)[0] for path, ftype, stat in files
         if (stat.st_size > maxsize and (os.path.splitext(path)[1]
-                                        in VALIDEXTS))])
+                                        in VALIDEXTS))}
 
     for rootfname in oversized:
         rootpath = os.path.join(folder, rootfname)