# HG changeset patch # User liscju # Date 2016-05-07 13:44:46 # Node ID 8c378a7d2aa6e6df892fae02e7547c3e73683feb # Parent 67999697221a03c094b88f3f969fadc8d280c291 py3: make largefiles/lfcommands.py use absolute_import diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -7,20 +7,38 @@ # GNU General Public License version 2 or any later version. '''High-level command function for lfconvert, plus the cmdtable.''' +from __future__ import absolute_import -import os, errno +import errno +import os import shutil -from mercurial import util, match as match_, hg, node, context, error, \ - cmdutil, scmutil, commands from mercurial.i18n import _ -from mercurial.lock import release -from hgext.convert import convcmd -from hgext.convert import filemap +from mercurial import ( + cmdutil, + commands, + context, + error, + hg, + lock, + match as match_, + node, + scmutil, + util, +) -import lfutil -import storefactory +from ..convert import ( + convcmd, + filemap, +) + +from . import ( + lfutil, + storefactory +) + +release = lock.release # -- Commands ---------------------------------------------------------- diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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/lfcommands.py not using absolute_import hgext/largefiles/lfutil.py not using absolute_import hgext/largefiles/localstore.py not using absolute_import hgext/largefiles/overrides.py not using absolute_import