Mercurial > hg
changeset 27335:c4e3ff497f89
bdiff: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 12 Dec 2015 13:34:55 -0500 |
parents | 9007f697e8ef |
children | 80214358ac88 |
files | mercurial/pure/bdiff.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pure/bdiff.py Sat Dec 12 13:33:47 2015 -0500 +++ b/mercurial/pure/bdiff.py Sat Dec 12 13:34:55 2015 -0500 @@ -5,7 +5,11 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import struct, difflib, re +from __future__ import absolute_import + +import difflib +import re +import struct def splitnewlines(text): '''like str.splitlines, but only split on newlines.'''
--- a/tests/test-check-py3-compat.t Sat Dec 12 13:33:47 2015 -0500 +++ b/tests/test-check-py3-compat.t Sat Dec 12 13:34:55 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/bdiff.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