Mercurial > public > mercurial-scm > hg
diff contrib/import-checker.py @ 28400:a84fc98a8af5
contrib: remove references to 2to3
The custom porting fixers are removed. A comment related to 2to3
has been removed from the import checker.
After this patch, no references to 2to3 remain.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 27 Feb 2016 21:15:16 -0800 |
parents | f3fb24e36d61 |
children | 35ad5bcdeb7e |
line wrap: on
line diff
--- a/contrib/import-checker.py Sat Feb 27 21:14:17 2016 -0800 +++ b/contrib/import-checker.py Sat Feb 27 21:15:16 2016 -0800 @@ -495,10 +495,6 @@ """Given some python source, verify that stdlib imports are done in separate statements from relative local module imports. - Observing this limitation is important as it works around an - annoying lib2to3 bug in relative import rewrites: - http://bugs.python.org/issue19510. - >>> list(verify_stdlib_on_own_line(ast.parse('import sys, foo'))) [('mixed imports\\n stdlib: sys\\n relative: foo', 1)] >>> list(verify_stdlib_on_own_line(ast.parse('import sys, os')))