bdiff: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 12 Dec 2015 13:34:55 -0500
changeset 27335 c4e3ff497f89
parent 27334 9007f697e8ef
child 27336 80214358ac88
bdiff: use absolute_import
mercurial/pure/bdiff.py
tests/test-check-py3-compat.t
--- 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