Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 27506:e6d3dad71e44
context: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Dec 2015 21:51:31 -0800 |
parents | 15c6eb0a51bd |
children | b502138f5faa |
line wrap: on
line diff
--- a/mercurial/context.py Mon Dec 21 21:44:15 2015 -0800 +++ b/mercurial/context.py Mon Dec 21 21:51:31 2015 -0800 @@ -5,17 +5,37 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +from __future__ import absolute_import + +import errno +import os import re +import stat -from node import nullid, nullrev, wdirid, short, hex, bin -from i18n import _ -import mdiff, error, util, scmutil, subrepo, patch, encoding, phases -import match as matchmod -import os, errno, stat -import obsolete as obsmod -import repoview -import fileset -import revlog +from .i18n import _ +from .node import ( + bin, + hex, + nullid, + nullrev, + short, + wdirid, +) +from . import ( + encoding, + error, + fileset, + match as matchmod, + mdiff, + obsolete as obsmod, + patch, + phases, + repoview, + revlog, + scmutil, + subrepo, + util, +) propertycache = util.propertycache