pvec: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Dec 2015 21:32:58 -0800
changeset 27501 983e93d88193
parent 27500 62b1b6a89d2a
child 27502 2df7f5c09c34
pvec: use absolute_import
mercurial/pvec.py
tests/test-check-py3-compat.t
--- a/mercurial/pvec.py	Tue Dec 22 15:25:40 2015 -0800
+++ b/mercurial/pvec.py	Mon Dec 21 21:32:58 2015 -0800
@@ -48,8 +48,13 @@
   different branches
 '''
 
-import base85, util
-from node import nullrev
+from __future__ import absolute_import
+
+from .node import nullrev
+from . import (
+    base85,
+    util,
+)
 
 _size = 448 # 70 chars b85-encoded
 _bytes = _size / 8
--- a/tests/test-check-py3-compat.t	Tue Dec 22 15:25:40 2015 -0800
+++ b/tests/test-check-py3-compat.t	Mon Dec 21 21:32:58 2015 -0800
@@ -117,7 +117,6 @@
   mercurial/lsprofcalltree.py requires print_function
   mercurial/mail.py requires print_function
   mercurial/manifest.py not using absolute_import
-  mercurial/pvec.py not using absolute_import
   setup.py not using absolute_import
   tests/filterpyflakes.py requires print_function
   tests/generate-working-copy-states.py requires print_function