[PATCH 07 of 16 V3] py3: make largefiles/overrides.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Sat Jun 4 11:23:33 EDT 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462883196 -7200
# Tue May 10 14:26:36 2016 +0200
# Node ID eb8183cf98c9207ede3ef1a4f92989dde72ee33e
# Parent 8f32c94334f69cd1dd2ca346fc77aa2d736f567c
py3: make largefiles/overrides.py use absolute_import
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -7,17 +7,31 @@
# GNU General Public License version 2 or any later version.
'''Overridden Mercurial commands and functions for the largefiles extension'''
+from __future__ import absolute_import
-import os
import copy
+import os
-from mercurial import hg, util, cmdutil, scmutil, match as match_, \
- archival, pathutil, registrar, revset, error
from mercurial.i18n import _
-import lfutil
-import lfcommands
-import storefactory
+from mercurial import (
+ archival,
+ cmdutil,
+ error,
+ hg,
+ match as match_,
+ pathutil,
+ registrar,
+ revset,
+ scmutil,
+ util,
+)
+
+from . import (
+ lfcommands,
+ lfutil,
+ storefactory,
+)
# -- Utility functions: commonly/repeatedly needed functionality ---------------
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
@@ -9,7 +9,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/overrides.py not using absolute_import
hgext/largefiles/proto.py not using absolute_import
hgext/largefiles/remotestore.py not using absolute_import
hgext/largefiles/reposetup.py not using absolute_import
More information about the Mercurial-devel
mailing list