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

Robert Stanca robert.stanca7 at gmail.com
Fri Apr 15 23:11:40 EDT 2016


# HG changeset patch
# User Robert Stanca <robert.stanca7 at 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

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


More information about the Mercurial-devel mailing list