Mercurial > hg
changeset 29306:83cecc0b991f
py3: make largefiles/__init__.py use absolute_import
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Fri, 06 May 2016 14:28:32 +0200 |
parents | 814076f4ace3 |
children | 67999697221a |
files | hgext/largefiles/__init__.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/__init__.py Sat Jun 04 16:53:44 2016 +0200 +++ b/hgext/largefiles/__init__.py Fri May 06 14:28:32 2016 +0200 @@ -104,14 +104,20 @@ explicitly do so with the --large flag passed to the :hg:`add` command. ''' +from __future__ import absolute_import -from mercurial import hg, localrepo +from mercurial import ( + hg, + localrepo, +) -import lfcommands -import proto -import reposetup -import uisetup as uisetupmod -import overrides +from . import ( + lfcommands, + overrides, + proto, + reposetup, + uisetup as uisetupmod, +) # Note for extension authors: ONLY specify testedwith = 'internal' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
--- a/tests/test-check-py3-compat.t Sat Jun 04 16:53:44 2016 +0200 +++ b/tests/test-check-py3-compat.t Fri May 06 14:28:32 2016 +0200 @@ -10,7 +10,6 @@ hgext/fsmonitor/pywatchman/pybser.py not using absolute_import hgext/highlight/__init__.py not using absolute_import hgext/highlight/highlight.py not using absolute_import - hgext/largefiles/__init__.py not using absolute_import hgext/largefiles/basestore.py not using absolute_import hgext/largefiles/lfcommands.py not using absolute_import hgext/largefiles/lfutil.py not using absolute_import