##// END OF EJS Templates
contrib: remove references to 2to3...
Gregory Szorc -
r28400:a84fc98a default
parent child Browse files
Show More
@@ -495,10 +495,6 b' def verify_stdlib_on_own_line(root):'
495 """Given some python source, verify that stdlib imports are done
495 """Given some python source, verify that stdlib imports are done
496 in separate statements from relative local module imports.
496 in separate statements from relative local module imports.
497
497
498 Observing this limitation is important as it works around an
499 annoying lib2to3 bug in relative import rewrites:
500 http://bugs.python.org/issue19510.
501
502 >>> list(verify_stdlib_on_own_line(ast.parse('import sys, foo')))
498 >>> list(verify_stdlib_on_own_line(ast.parse('import sys, foo')))
503 [('mixed imports\\n stdlib: sys\\n relative: foo', 1)]
499 [('mixed imports\\n stdlib: sys\\n relative: foo', 1)]
504 >>> list(verify_stdlib_on_own_line(ast.parse('import sys, os')))
500 >>> list(verify_stdlib_on_own_line(ast.parse('import sys, os')))
@@ -6,9 +6,6 b''
6 contrib/check-code.py not using absolute_import
6 contrib/check-code.py not using absolute_import
7 contrib/check-code.py requires print_function
7 contrib/check-code.py requires print_function
8 contrib/debugshell.py not using absolute_import
8 contrib/debugshell.py not using absolute_import
9 contrib/hgfixes/fix_bytes.py not using absolute_import
10 contrib/hgfixes/fix_bytesmod.py not using absolute_import
11 contrib/hgfixes/fix_leftover_imports.py not using absolute_import
12 contrib/import-checker.py not using absolute_import
9 contrib/import-checker.py not using absolute_import
13 contrib/import-checker.py requires print_function
10 contrib/import-checker.py requires print_function
14 contrib/memory.py not using absolute_import
11 contrib/memory.py not using absolute_import
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now