# HG changeset patch # User Simon Heimberg # Date 1242719826 -7200 # Node ID 8e2c0ab94432e8498fa34bf69907be9e0277c6f2 # Parent 865e08a7d6b0da2753794deab81caf14d9176258 util: use set instead of dict diff -r 865e08a7d6b0 -r 8e2c0ab94432 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.