showstack: use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 13 Mar 2016 01:59:18 +0530
changeset 28522 f2fe7b199bb4
parent 28521 c3ed14344cd9
child 28523 045fe7042510
showstack: use absolute_import
contrib/showstack.py
tests/test-check-py3-compat.t
--- 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