diff mercurial/discovery.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 c52728b383b4
children 8fb5f452e69c
line wrap: on
line diff
--- a/mercurial/discovery.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/discovery.py	Fri Feb 10 16:56:29 2017 -0800
@@ -254,7 +254,7 @@
     newheads = list(c.node() for c in r)
     # set some unsynced head to issue the "unsynced changes" warning
     if inc:
-        unsynced = set([None])
+        unsynced = {None}
     else:
         unsynced = set()
     return {None: (oldheads, newheads, unsynced)}