Mercurial > hg-stable
diff mercurial/hook.py @ 25953:d15b279ddade
hook: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 19:24:40 -0700 |
parents | 328739ea70c3 |
children | 56b2bcea2529 |
line wrap: on
line diff
--- a/mercurial/hook.py Sat Aug 08 19:22:11 2015 -0700 +++ b/mercurial/hook.py Sat Aug 08 19:24:40 2015 -0700 @@ -5,9 +5,19 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -import os, sys, time -import extensions, util, demandimport, error +from __future__ import absolute_import + +import os +import sys +import time + +from .i18n import _ +from . import ( + demandimport, + error, + extensions, + util, +) def _pythonhook(ui, repo, name, hname, funcname, args, throw): '''call python hook. hook is callable object, looked up as