diff mercurial/dispatch.py @ 32291:bd872f64a8ba

cleanup: use set literals We no longer support Python 2.6, so we can now use set literals.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 10 Feb 2017 16:56:29 -0800
parents 89153b0d4881
children 9c023179e8d0
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/dispatch.py	Fri Feb 10 16:56:29 2017 -0800
@@ -749,7 +749,7 @@
     # imported and commands.table is populated.
     debugcommands.command
 
-    uis = set([ui, lui])
+    uis = {ui, lui}
 
     if req.repo:
         uis.add(req.repo.ui)