diff mercurial/setdiscovery.py @ 32331: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 c3eacee01c7e
children 43bda143e3b2
line wrap: on
line diff
--- a/mercurial/setdiscovery.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/setdiscovery.py	Fri Feb 10 16:56:29 2017 -0800
@@ -243,7 +243,7 @@
             raise error.Abort(_("repository is unrelated"))
         else:
             ui.warn(_("warning: repository is unrelated\n"))
-        return (set([nullid]), True, srvheadhashes,)
+        return ({nullid}, True, srvheadhashes,)
 
     anyincoming = (srvheadhashes != [nullid])
     return dag.externalizeall(result), anyincoming, srvheadhashes