changeset 28476:e28dc6de38e7

debugshell: use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 06 Mar 2016 03:19:08 +0530
parents ae522fb493d4
children 194a6cd873cd
files contrib/debugshell.py tests/test-check-py3-compat.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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