# HG changeset patch # User Gregory Szorc # Date 2015-08-09 02:28:49 # Node ID 2c07c6884394f584a817375d572c33c2d87ea098 # Parent 7bbdb78d284211fa79df84e9f8ff94918394e2c5 i18n: use absolute_import diff --git a/mercurial/i18n.py b/mercurial/i18n.py --- a/mercurial/i18n.py +++ b/mercurial/i18n.py @@ -5,8 +5,14 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import encoding -import gettext as gettextmod, sys, os, locale +from __future__ import absolute_import + +import gettext as gettextmod +import locale +import os +import sys + +from . import encoding # modelled after templater.templatepath: if getattr(sys, 'frozen', None) is not None: