diff mercurial/node.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 1070df141718
children af854b1b36f8
line wrap: on
line diff
--- a/mercurial/node.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/node.py	Fri Feb 10 16:56:29 2017 -0800
@@ -23,7 +23,7 @@
 addednodeid = ('0' * 15) + 'added'
 modifiednodeid = ('0' * 12) + 'modified'
 
-wdirnodes = set((newnodeid, addednodeid, modifiednodeid))
+wdirnodes = {newnodeid, addednodeid, modifiednodeid}
 
 # pseudo identifiers for working directory
 # (they are experimental, so don't add too many dependencies on them)