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

login
register
mail settings
Submitter roby roby
Date April 16, 2016, 3:11 a.m.
Message ID <d6d66f9c5f6a895add8c.1460776303@roby>
Download mbox | patch
Permalink /patch/14673/
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 1460775791 -10800
#      Sat Apr 16 06:03:11 2016 +0300
# Node ID d6d66f9c5f6a895add8cbb8dc26ad20410d85984
# Parent  9201693167c4c79552093689cfa985b04456a5d8
py3: use absolute_import in svnxml.py

Patch

diff -r 9201693167c4 -r d6d66f9c5f6a tests/svnxml.py
--- a/tests/svnxml.py	Sat Apr 16 05:36:25 2016 +0300
+++ b/tests/svnxml.py	Sat Apr 16 06:03:11 2016 +0300
@@ -1,7 +1,9 @@ 
 # Read the output of a "svn log --xml" command on stdin, parse it and
 # print a subset of attributes common to all svn versions tested by
 # hg.
-import xml.dom.minidom, sys
+from __future__ import absolute_import
+import sys
+import xml.dom.minidom
 
 def xmltext(e):
     return ''.join(c.data for c
diff -r 9201693167c4 -r d6d66f9c5f6a tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sat Apr 16 05:36:25 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 06:03:11 2016 +0300
@@ -45,7 +45,6 @@ 
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function
   tests/run-tests.py not using absolute_import
-  tests/svnxml.py not using absolute_import
   tests/test-atomictempfile.py not using absolute_import
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function