diff mercurial/util.py @ 7430:f0a3e87c810d

util: use existing never() instead of custom lambda
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 27 Nov 2008 00:57:32 +0100
parents 040484030491
children 2a67430f92f1
line wrap: on
line diff
--- 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, '(?:/|$)')