diff mercurial/revsetlang.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 11f501f0a213
children c808507cfbf0
line wrap: on
line diff
--- a/mercurial/revsetlang.py	Sat May 06 04:51:25 2017 +0530
+++ b/mercurial/revsetlang.py	Fri Feb 10 16:56:29 2017 -0800
@@ -44,9 +44,9 @@
     "end": (0, None, None, None, None),
 }
 
-keywords = set(['and', 'or', 'not'])
+keywords = {'and', 'or', 'not'}
 
-_quoteletters = set(['"', "'"])
+_quoteletters = {'"', "'"}
 _simpleopletters = set(pycompat.iterbytestr("():=,-|&+!~^%"))
 
 # default set of valid characters for the initial letter of symbols