diff mercurial/copies.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 5a909a8098a1
children c8c9feffbd35
line wrap: on
line diff
--- a/mercurial/copies.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/copies.py	Fri Feb 10 16:56:29 2017 -0800
@@ -637,7 +637,7 @@
         return
 
     of = None
-    seen = set([f])
+    seen = {f}
     for oc in getfctx(f, m1[f]).ancestors():
         ocr = oc.linkrev()
         of = oc.path()