[PATCH 9 of 9] check-code: added check for reduce usage
Renato Cunha
renatoc at gmail.com
Wed Jul 14 21:18:42 CDT 2010
# HG changeset patch
# User Renato Cunha <renatoc at gmail.com>
# Date 1279160103 10800
# Branch stable
# Node ID 70f6db6e2e6cb7cf35e0b8d3125657615e3837a5
# Parent 1d847cdaba116394131b87e060907ceb1211c81f
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 ,"),
More information about the Mercurial-devel
mailing list