Patchwork [1,of,7] py3: use absolute_import in killdaemons.py

login
register
mail settings
Submitter roby roby
Date April 16, 2016, 3:11 a.m.
Message ID <da5c0da91d32d941a5ba.1460776297@roby>
Download mbox | patch
Permalink /patch/14668/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

roby roby - April 16, 2016, 3:11 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1460773769 -10800
#      Sat Apr 16 05:29:29 2016 +0300
# Node ID da5c0da91d32d941a5ba1125292b79d3763757de
# Parent  f27f3203ab725862b22e296a42c62e323092e615
py3: use absolute_import in killdaemons.py

Patch

diff -r f27f3203ab72 -r da5c0da91d32 tests/killdaemons.py
--- a/tests/killdaemons.py	Fri Apr 15 17:43:47 2016 +0000
+++ 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
diff -r f27f3203ab72 -r da5c0da91d32 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Fri Apr 15 17:43:47 2016 +0000
+++ 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