changeset 28522:f2fe7b199bb4

showstack: use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 13 Mar 2016 01:59:18 +0530
parents c3ed14344cd9
children 045fe7042510
files contrib/showstack.py tests/test-check-py3-compat.t
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/showstack.py	Mon Mar 14 14:12:13 2016 +0530
+++ b/contrib/showstack.py	Sun Mar 13 01:59:18 2016 +0530
@@ -2,7 +2,10 @@
 #
 # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
 
-import sys, signal, traceback
+from __future__ import absolute_import
+import signal
+import sys
+import traceback
 
 def sigshow(*args):
     sys.stderr.write("\n")
--- a/tests/test-check-py3-compat.t	Mon Mar 14 14:12:13 2016 +0530
+++ b/tests/test-check-py3-compat.t	Sun Mar 13 01:59:18 2016 +0530
@@ -9,7 +9,6 @@
   contrib/python-hook-examples.py not using absolute_import
   contrib/revsetbenchmarks.py not using absolute_import
   contrib/revsetbenchmarks.py requires print_function
-  contrib/showstack.py not using absolute_import
   contrib/synthrepo.py not using absolute_import
   doc/check-seclevel.py not using absolute_import
   doc/gendoc.py not using absolute_import