check-code: added check for reduce usage
authorRenato Cunha <renatoc@gmail.com>
Wed, 14 Jul 2010 23:15:03 -0300
changeset 11569 f8576644a222
parent 11568 d5d4e6a30613
child 11570 2d88369a27bf
check-code: added check for reduce usage
contrib/check-code.py
--- a/contrib/check-code.py	Wed Jul 14 23:15:00 2010 -0300
+++ b/contrib/check-code.py	Wed Jul 14 23:15:03 2010 -0300
@@ -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 ,"),