Patchwork [4,of,7] py3: use absolute_import in revlog-formatv0.py

login
register
mail settings
Submitter roby roby
Date April 16, 2016, 3:11 a.m.
Message ID <15171a6085ffff948ec9.1460776300@roby>
Download mbox | patch
Permalink /patch/14670/
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 1460774003 -10800
#      Sat Apr 16 05:33:23 2016 +0300
# Node ID 15171a6085ffff948ec94ddb9d69241bcbed2643
# Parent  5734f58d0945ae545030a1dc3f68ee0a7a0249b3
py3: use absolute_import in revlog-formatv0.py

Patch

diff -r 5734f58d0945 -r 15171a6085ff tests/revlog-formatv0.py
--- a/tests/revlog-formatv0.py	Sat Apr 16 05:32:10 2016 +0300
+++ b/tests/revlog-formatv0.py	Sat Apr 16 05:33:23 2016 +0300
@@ -17,7 +17,9 @@ 
 empty file
 """
 
-import os, sys
+from __future__ import absolute_import
+import os
+import sys
 
 files = [
     ('formatv0/.hg/00changelog.i',
diff -r 5734f58d0945 -r 15171a6085ff tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sat Apr 16 05:32:10 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 05:33:23 2016 +0300
@@ -44,7 +44,6 @@ 
   tests/md5sum.py not using absolute_import
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function
-  tests/revlog-formatv0.py not using absolute_import
   tests/run-tests.py not using absolute_import
   tests/sitecustomize.py not using absolute_import
   tests/svn-safe-append.py not using absolute_import