[PATCH 11 of 17 V2] py3: make largefiles/storeutil.py use absolute_import

liscju piotr.listkiewicz at gmail.com
Thu May 12 06:20:33 EDT 2016


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462885762 -7200
#      Tue May 10 15:09:22 2016 +0200
# Node ID b183dd2ee90f45fcc1b26b76318f7f1dedbe11dd
# Parent  28d13fbdecaf94fe8c733342ad9f8ce7f49c165b
py3: make largefiles/storeutil.py use absolute_import

diff -r 28d13fbdecaf -r b183dd2ee90f 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 28d13fbdecaf -r b183dd2ee90f 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