diff mercurial/match.py @ 8152:08e1baf924ca

replace set-like dictionaries with real sets Many of the dictionaries created by dict.fromkeys were emulating sets. These can now be replaced with real sets.
author Martin Geisler <mg@lazybytes.net>
date Wed, 22 Apr 2009 00:57:28 +0200
parents cbdfd08eabc9
children 5d4d88a4f5e6
line wrap: on
line diff
--- a/mercurial/match.py	Wed Apr 22 00:56:06 2009 +0200
+++ b/mercurial/match.py	Wed Apr 22 00:57:28 2009 +0200
@@ -5,7 +5,7 @@
         self._root = root
         self._cwd = cwd
         self._files = files
-        self._fmap = dict.fromkeys(files)
+        self._fmap = set(files)
         self.matchfn = mf
         self._anypats = ap
     def __call__(self, fn):