[PATCH] check-code: Added check for reduce usage

Renato Cunha renatoc at gmail.com
Wed Jul 14 14:42:27 CDT 2010


On Wed, Jul 14, 2010 at 09:28:19PM +0200, Martin Geisler wrote:
> > check-code: Added check for reduce usage.
> >
> > diff --git a/contrib/check-code.py b/contrib/check-code.py
> > --- a/contrib/check-code.py
> > +++ b/contrib/check-code.py
> > @@ -74,6 +74,7 @@
> >       "tuple parameter unpacking not available in Python 3+"),
> >      (r'lambda\s*\(.*,.*\)',
> >       "tuple parameter unpacking not available in Python 3+"),
> > +    (r'\breduce\s*\(.*', "reduce is not available in Python 3+"),
> >      (r'^\s*\t', "don't use tabs"),
> >      (r'\S;\s*\n', "semicolon"),
> >      (r'\w,\w', "missing whitespace after ,"),
> 
> Ehm, this doesn't apply -- I guess it depends on some other check-code
> patch you have sent us?

Hm, yeah. I sent this path before figuring out that the series this patch
depends on was ignored. I'll add it to the to-be-resent series.

Thanks!
-- 
Renato Cunha <http://renatocunha.com>
Blog: http://valedotrovao.com
"If more of us valued food and cheer
and song above hoarded gold,
it would be a merrier world.
              -- J. R. R. Tolkien


More information about the Mercurial-devel mailing list