changeset 8516:8e2c0ab94432

util: use set instead of dict
author Simon Heimberg <simohe@besonet.ch>
date Tue, 19 May 2009 09:57:06 +0200
parents 865e08a7d6b0
children 110763cc3ab0
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.