changeset 11569:f8576644a222

check-code: added check for reduce usage
author Renato Cunha <renatoc@gmail.com>
date Wed, 14 Jul 2010 23:15:03 -0300
parents d5d4e6a30613
children 2d88369a27bf
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ,"),