changeset 25963:7448df709b2e

parser: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 19:44:05 -0700
parents 738314da6c75
children d740df4e96cf
files mercurial/parser.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parser.py	Sat Aug 08 19:43:24 2015 -0700
+++ b/mercurial/parser.py	Sat Aug 08 19:44:05 2015 -0700
@@ -16,8 +16,10 @@
 # an action is a tree node name, a tree label, and an optional match
 # __call__(program) parses program into a labeled tree
 
-import error
-from i18n import _
+from __future__ import absolute_import
+
+from .i18n import _
+from . import error
 
 class parser(object):
     def __init__(self, elements, methods=None):