Mercurial > hg
changeset 28702:e44f671018e3
py3: use absolute_import in import-checker
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 30 Mar 2016 04:50:19 +0000 |
parents | 3bce3d2fd727 |
children | a274c4f9087a |
files | contrib/import-checker.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/import-checker.py Wed Mar 30 09:13:47 2016 +0000 +++ b/contrib/import-checker.py Wed Mar 30 04:50:19 2016 +0000 @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import absolute_import + import ast import collections import os
--- a/tests/test-check-py3-compat.t Wed Mar 30 09:13:47 2016 +0000 +++ b/tests/test-check-py3-compat.t Wed Mar 30 04:50:19 2016 +0000 @@ -3,7 +3,6 @@ $ cd "$TESTDIR"/.. $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py - contrib/import-checker.py not using absolute_import contrib/import-checker.py requires print_function doc/check-seclevel.py not using absolute_import doc/gendoc.py not using absolute_import