util: use existing never() instead of custom lambda
authorMads Kiilerich <mads@kiilerich.com>
Thu, 27 Nov 2008 00:57:32 +0100
changeset 7430 f0a3e87c810d
parent 7429 dbc40381620e
child 7431 3d827cc616b6
util: use existing never() instead of custom lambda
mercurial/util.py
--- a/mercurial/util.py	Thu Nov 27 00:57:31 2008 +0100
+++ b/mercurial/util.py	Thu Nov 27 00:57:32 2008 +0100
@@ -607,7 +607,7 @@
     if inc:
         dummy, inckinds, dummy = normalizepats(inc, 'glob')
         incmatch = matchfn(inckinds, '(?:/|$)')
-    excmatch = lambda fn: False
+    excmatch = never
     if exc:
         dummy, exckinds, dummy = normalizepats(exc, 'glob')
         excmatch = matchfn(exckinds, '(?:/|$)')