parser: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:44:05 -0700
changeset 25963 7448df709b2e
parent 25962 738314da6c75
child 25964 d740df4e96cf
parser: use absolute_import
mercurial/parser.py
--- 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):