comparison mercurial/fileset.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 4240be02df79
children 1fb0a85fb20e
comparison
equal deleted inserted replaced
32290:2959c3e986e0 32291:bd872f64a8ba
35 "symbol": (0, "symbol", None, None, None), 35 "symbol": (0, "symbol", None, None, None),
36 "string": (0, "string", None, None, None), 36 "string": (0, "string", None, None, None),
37 "end": (0, None, None, None, None), 37 "end": (0, None, None, None, None),
38 } 38 }
39 39
40 keywords = set(['and', 'or', 'not']) 40 keywords = {'and', 'or', 'not'}
41 41
42 globchars = ".*{}[]?/\\_" 42 globchars = ".*{}[]?/\\_"
43 43
44 def tokenize(program): 44 def tokenize(program):
45 pos, l = 0, len(program) 45 pos, l = 0, len(program)