contrib/check-code.py
changeset 25142 24140873ca4c
parent 25141 3ea8d6b5e665
child 25148 3b5cd6f13dcc
--- a/contrib/check-code.py	Sun May 17 17:45:47 2015 -0700
+++ b/contrib/check-code.py	Sun May 17 17:47:42 2015 -0700
@@ -217,8 +217,6 @@
     (r'(\w|\)),\w', "missing whitespace after ,"),
     (r'(\w|\))[+/*\-<>]\w', "missing whitespace in expression"),
     (r'^\s+(\w|\.)+=\w[^,()\n]*$', "missing whitespace in assignment"),
-    (r'(?<!def)(\s+|^|\()next\(.+\)',
-     'no next(foo) in Python 2.4 and 2.5, use foo.next() instead'),
     (r'(\s+)try:\n((?:\n|\1\s.*\n)*?)\1\s*yield\b.*?'
      r'((?:\n|\1\s.*\n)+?)\1finally:',
      'no yield inside try/finally in Python 2.4'),