changeset 27501:983e93d88193

pvec: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Dec 2015 21:32:58 -0800
parents 62b1b6a89d2a
children 2df7f5c09c34
files mercurial/pvec.py tests/test-check-py3-compat.t
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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