##// END OF EJS Templates
util: use set instead of dict
Simon Heimberg -
r8516:8e2c0ab9 default
parent child Browse files
Show More
@@ -266,7 +266,7 b" def globre(pat, head='^', tail='$'):"
266 res += re.escape(c)
266 res += re.escape(c)
267 return head + res + tail
267 return head + res + tail
268
268
269 _globchars = {'[': 1, '{': 1, '*': 1, '?': 1}
269 _globchars = set('[{*?')
270
270
271 def pathto(root, n1, n2):
271 def pathto(root, n1, n2):
272 '''return the relative path from one place to another.
272 '''return the relative path from one place to another.
General Comments 0
You need to be logged in to leave comments. Login now