diff hgext/fastannotate/commands.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 901f6ef670ca
children 2372284d9457
line wrap: on
line diff
--- a/hgext/fastannotate/commands.py	Wed Jul 19 13:17:49 2017 -0700
+++ b/hgext/fastannotate/commands.py	Wed Apr 03 11:21:27 2019 -0700
@@ -198,9 +198,9 @@
         formatter.write(result, lines, existinglines=existinglines)
     formatter.end()
 
-_newopts = set([])
-_knownopts = set([opt[1].replace('-', '_') for opt in
-                  (fastannotatecommandargs[r'options'] + commands.globalopts)])
+_newopts = set()
+_knownopts = {opt[1].replace('-', '_') for opt in
+              (fastannotatecommandargs[r'options'] + commands.globalopts)}
 
 def _annotatewrapper(orig, ui, repo, *pats, **opts):
     """used by wrapdefault"""