[PATCH 6 of 7] py3: use absolute_import in svn-safe-append.py
Robert Stanca
robert.stanca7 at gmail.com
Fri Apr 15 23:11:42 EDT 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1460774185 -10800
# Sat Apr 16 05:36:25 2016 +0300
# Node ID 9201693167c4c79552093689cfa985b04456a5d8
# Parent 329b0dca309f81b78222d22ff2361bde29e1e71c
py3: use absolute_import in svn-safe-append.py
diff -r 329b0dca309f -r 9201693167c4 tests/svn-safe-append.py
--- a/tests/svn-safe-append.py Sat Apr 16 05:34:21 2016 +0300
+++ b/tests/svn-safe-append.py Sat Apr 16 05:36:25 2016 +0300
@@ -3,7 +3,9 @@
__doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
Without this svn will not detect workspace changes."""
-import sys, os
+from __future__ import absolute_import
+import os
+import sys
text = sys.argv[1]
fname = sys.argv[2]
diff -r 329b0dca309f -r 9201693167c4 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Sat Apr 16 05:34:21 2016 +0300
+++ b/tests/test-check-py3-compat.t Sat Apr 16 05:36:25 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/svn-safe-append.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
More information about the Mercurial-devel
mailing list