changeset 28942:05cb9c6f310e

py3: use absolute_import in killdaemons.py
author Robert Stanca <robert.stanca7@gmail.com>
date Sat, 16 Apr 2016 05:29:29 +0300
parents 8353d154a9bd
children 417380aa5bbe
files tests/killdaemons.py tests/test-check-py3-compat.t
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/killdaemons.py	Fri Apr 15 22:53:53 2016 -0400
+++ b/tests/killdaemons.py	Sat Apr 16 05:29:29 2016 +0300
@@ -1,6 +1,11 @@
 #!/usr/bin/env python
 
-import os, sys, time, errno, signal
+from __future__ import absolute_import
+import errno
+import os
+import signal
+import sys
+import time
 
 if os.name =='nt':
     import ctypes
--- a/tests/test-check-py3-compat.t	Fri Apr 15 22:53:53 2016 -0400
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 05:29:29 2016 +0300
@@ -41,7 +41,6 @@
   i18n/polib.py not using absolute_import
   setup.py not using absolute_import
   tests/heredoctest.py requires print_function
-  tests/killdaemons.py not using absolute_import
   tests/md5sum.py not using absolute_import
   tests/mockblackbox.py not using absolute_import
   tests/printenv.py not using absolute_import