changeset 27336:80214358ac88

diffhelpers: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 12 Dec 2015 13:35:41 -0500
parents c4e3ff497f89
children 9a17576103a4
files mercurial/pure/diffhelpers.py tests/test-check-py3-compat.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pure/diffhelpers.py	Sat Dec 12 13:34:55 2015 -0500
+++ b/mercurial/pure/diffhelpers.py	Sat Dec 12 13:35:41 2015 -0500
@@ -5,6 +5,8 @@
 # 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)
--- a/tests/test-check-py3-compat.t	Sat Dec 12 13:34:55 2015 -0500
+++ b/tests/test-check-py3-compat.t	Sat Dec 12 13:35:41 2015 -0500
@@ -122,7 +122,6 @@
   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