py3: use absolute_import in killdaemons.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sat, 16 Apr 2016 05:29:29 +0300
changeset 28942 05cb9c6f310e
parent 28941 8353d154a9bd
child 28943 417380aa5bbe
py3: use absolute_import in killdaemons.py
tests/killdaemons.py
tests/test-check-py3-compat.t
--- 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