py3: use absolute_import in import-checker
authortimeless <timeless@mozdev.org>
Wed, 30 Mar 2016 04:50:19 +0000
changeset 28702 e44f671018e3
parent 28701 3bce3d2fd727
child 28703 a274c4f9087a
py3: use absolute_import in import-checker
contrib/import-checker.py
tests/test-check-py3-compat.t
--- 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