diff mercurial/util.py @ 8516:8e2c0ab94432

util: use set instead of dict
author Simon Heimberg <simohe@besonet.ch>
date Tue, 19 May 2009 09:57:06 +0200
parents f53bc3e37655
children 22ec9cf4d0ce
line wrap: on
line diff
--- 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.