util: use set instead of dict
authorSimon Heimberg <simohe@besonet.ch>
Tue, 19 May 2009 09:57:06 +0200
changeset 8516 8e2c0ab94432
parent 8515 865e08a7d6b0
child 8517 110763cc3ab0
util: use set instead of dict
mercurial/util.py
--- a/mercurial/util.py	Tue May 19 11:39:12 2009 +0200
+++ b/mercurial/util.py	Tue May 19 09:57:06 2009 +0200
@@ -266,7 +266,7 @@
             res += re.escape(c)
     return head + res + tail
 
-_globchars = {'[': 1, '{': 1, '*': 1, '?': 1}
+_globchars = set('[{*?')
 
 def pathto(root, n1, n2):
     '''return the relative path from one place to another.