Mercurial > hg
changeset 25946:5e0d80195a0f
extensions: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 19:13:14 -0700 |
parents | 147bd9e238a1 |
children | 6002e2d95e54 |
files | mercurial/extensions.py |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/extensions.py Sat Aug 08 19:09:09 2015 -0700 +++ b/mercurial/extensions.py Sat Aug 08 19:13:14 2015 -0700 @@ -5,9 +5,21 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import imp, os -import util, cmdutil, error -from i18n import _, gettext +from __future__ import absolute_import + +import imp +import os + +from .i18n import ( + _, + gettext, +) + +from . import ( + cmdutil, + error, + util, +) _extensions = {} _aftercallbacks = {}