[PATCH 6 of 9] diffhelpers: use absolute_import
Gregory Szorc
gregory.szorc at gmail.com
Sat Dec 12 12:47:49 CST 2015
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1449945341 18000
# Sat Dec 12 13:35:41 2015 -0500
# Node ID 3316f0cee2f31025baf33174d426f4da659d7cb1
# Parent 2fa9b220087a948d54ecbdb47a186c3833633c27
diffhelpers: use absolute_import
diff --git a/mercurial/pure/diffhelpers.py b/mercurial/pure/diffhelpers.py
--- a/mercurial/pure/diffhelpers.py
+++ b/mercurial/pure/diffhelpers.py
@@ -4,8 +4,10 @@
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
+from __future__ import absolute_import
+
def addlines(fp, hunk, lena, lenb, a, b):
while True:
todoa = lena - len(a)
todob = lenb - len(b)
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -121,9 +121,8 @@
mercurial/mail.py requires print_function
mercurial/manifest.py not using absolute_import
mercurial/mdiff.py not using absolute_import
mercurial/patch.py not using absolute_import
- mercurial/pure/diffhelpers.py not using absolute_import
mercurial/pure/mpatch.py not using absolute_import
mercurial/pure/osutil.py not using absolute_import
mercurial/pure/parsers.py not using absolute_import
mercurial/pvec.py not using absolute_import
More information about the Mercurial-devel
mailing list