diff hgext/largefiles/basestore.py @ 42057:566daffc607d

cleanup: use set literals where possible Differential Revision: https://phab.mercurial-scm.org/D6192
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 03 Apr 2019 11:21:27 -0700
parents a65ad9b22a00
children 2372284d9457
line wrap: on
line diff
--- a/hgext/largefiles/basestore.py	Wed Jul 19 13:17:49 2017 -0700
+++ b/hgext/largefiles/basestore.py	Wed Apr 03 11:21:27 2019 -0700
@@ -136,7 +136,7 @@
         failed = self._verifyfiles(contents, filestocheck)
 
         numrevs = len(verified)
-        numlfiles = len(set([fname for (fname, fnode) in verified]))
+        numlfiles = len({fname for (fname, fnode) in verified})
         if contents:
             self.ui.status(
                 _('verified contents of %d revisions of %d largefiles\n')