[PATCH 11 of 13] py3: make largefiles/storeutil.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Wed May 11 23:49:20 UTC 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462885762 -7200
# Tue May 10 15:09:22 2016 +0200
# Node ID 2dc8fef1592c1963dd799f063ea4cdf5bda0d3fa
# Parent 1531a0d7ddb11f4e5d2b67d097bfc48884091cc1
py3: make largefiles/storeutil.py use absolute_import
diff -r 1531a0d7ddb1 -r 2dc8fef1592c hgext/largefiles/storeutil.py
--- a/hgext/largefiles/storeutil.py Tue May 10 15:04:22 2016 +0200
+++ b/hgext/largefiles/storeutil.py Tue May 10 15:09:22 2016 +0200
@@ -7,15 +7,24 @@
# GNU General Public License version 2 or any later version.
'''store utility code: must not import other modules in this package.'''
+from __future__ import absolute_import
+import copy
import os
import platform
import stat
-import copy
-from mercurial import dirstate, httpconnection, match as match_, util, scmutil
from mercurial.i18n import _
-from mercurial import node, error
+
+from mercurial import (
+ dirstate,
+ error,
+ httpconnection,
+ match as match_,
+ node,
+ scmutil,
+ util,
+)
shortname = '.hglf'
shortnameslash = shortname + '/'
diff -r 1531a0d7ddb1 -r 2dc8fef1592c tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Tue May 10 15:04:22 2016 +0200
+++ b/tests/test-check-py3-compat.t Tue May 10 15:09:22 2016 +0200
@@ -10,7 +10,6 @@
hgext/hgcia.py not using absolute_import
hgext/highlight/__init__.py not using absolute_import
hgext/highlight/highlight.py not using absolute_import
- hgext/largefiles/storeutil.py not using absolute_import
hgext/largefiles/uisetup.py not using absolute_import
hgext/largefiles/wirestore.py not using absolute_import
hgext/share.py not using absolute_import
More information about the Mercurial-devel
mailing list