Mercurial > hg > mercurial-crew
changeset 28127:509159675cdb
store: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Dec 2015 21:19:57 -0800 |
parents | 3ce1d50daa99 |
children | 029f02757c20 |
files | mercurial/store.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py +++ b/mercurial/store.py @@ -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 scmutil, util, parsers, error -import os, stat, errno +from __future__ import absolute_import + +import errno +import os +import stat + +from .i18n import _ +from . import ( + error, + parsers, + scmutil, + util, +) _sha = util.sha1
--- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -124,7 +124,6 @@ mercurial/scmposix.py not using absolute_import mercurial/scmutil.py not using absolute_import mercurial/scmwindows.py not using absolute_import - mercurial/store.py not using absolute_import setup.py not using absolute_import tests/filterpyflakes.py requires print_function tests/generate-working-copy-states.py requires print_function