debugshell: use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 06 Mar 2016 03:19:08 +0530
changeset 28476 e28dc6de38e7
parent 28475 ae522fb493d4
child 28477 194a6cd873cd
debugshell: use absolute_import
contrib/debugshell.py
tests/test-check-py3-compat.t
--- a/contrib/debugshell.py	Fri Mar 11 10:26:58 2016 +0900
+++ b/contrib/debugshell.py	Sun Mar 06 03:19:08 2016 +0530
@@ -1,9 +1,10 @@
 # debugshell extension
 """a python shell with repo, changelog & manifest objects"""
 
-import sys
+from __future__ import absolute_import
+import code
 import mercurial
-import code
+import sys
 from mercurial import (
     cmdutil,
     demandimport,
--- a/tests/test-check-py3-compat.t	Fri Mar 11 10:26:58 2016 +0900
+++ b/tests/test-check-py3-compat.t	Sun Mar 06 03:19:08 2016 +0530
@@ -5,7 +5,6 @@
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
   contrib/check-code.py not using absolute_import
   contrib/check-code.py requires print_function
-  contrib/debugshell.py not using absolute_import
   contrib/import-checker.py not using absolute_import
   contrib/import-checker.py requires print_function
   contrib/memory.py not using absolute_import