# HG changeset patch # User Gregory Szorc # Date 2015-08-09 02:44:05 # Node ID 7448df709b2e22d61e4245e76002880a1ca46c09 # Parent 738314da6c75c1c5352e171911f47371e2d6a9a4 parser: use absolute_import diff --git a/mercurial/parser.py b/mercurial/parser.py --- a/mercurial/parser.py +++ b/mercurial/parser.py @@ -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):