Mercurial > public > mercurial-scm > hg-stable
diff mercurial/url.py @ 8150:bbc24c0753a0
util: use built-in set and frozenset
This drops Python 2.3 compatibility.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 22 Apr 2009 00:55:32 +0200 |
parents | 5ad99abfab79 |
children | 32a2a1e244f1 |
line wrap: on
line diff
--- a/mercurial/url.py Fri Apr 24 10:43:12 2009 +0200 +++ b/mercurial/url.py Wed Apr 22 00:55:32 2009 +0200 @@ -84,8 +84,8 @@ ''' global _safeset, _hex if _safeset is None: - _safeset = util.set(_safe) - _hex = util.set('abcdefABCDEF0123456789') + _safeset = set(_safe) + _hex = set('abcdefABCDEF0123456789') l = list(path) for i in xrange(len(l)): c = l[i]