changeset 28399:2af0156cebaa

check-code: remove redundant import style check We have a dedicated tool that checks for import conventions. Remove a redundant and less powerful check.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 21:14:17 -0800
parents 712298942c82
children a84fc98a8af5
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Sat Feb 27 21:11:24 2016 -0800
+++ b/contrib/check-code.py	Sat Feb 27 21:14:17 2016 -0800
@@ -218,9 +218,6 @@
      "tuple parameter unpacking not available in Python 3+"),
     (r'lambda\s*\(.*,.*\)',
      "tuple parameter unpacking not available in Python 3+"),
-    (r'import (.+,[^.]+\.[^.]+|[^.]+\.[^.]+,)',
-     '2to3 can\'t always rewrite "import qux, foo.bar", '
-     'use "import foo.bar" on its own line instead.'),
     (r'(?<!def)\s+(cmp)\(', "cmp is not available in Python 3+"),
     (r'\breduce\s*\(.*', "reduce is not available in Python 3+"),
     (r'dict\(.*=', 'dict() is different in Py2 and 3 and is slower than {}',