[PATCH 12 of 17 V2] py3: make largefiles/uisetup.py use absolute_import

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


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462886081 -7200
#      Tue May 10 15:14:41 2016 +0200
# Node ID 4cb0bab46f0c1daad103bacff1853a265da7f1a2
# Parent  b183dd2ee90f45fcc1b26b76318f7f1dedbe11dd
py3: make largefiles/uisetup.py use absolute_import

diff -r b183dd2ee90f -r 4cb0bab46f0c hgext/largefiles/uisetup.py
--- a/hgext/largefiles/uisetup.py	Tue May 10 15:09:22 2016 +0200
+++ b/hgext/largefiles/uisetup.py	Tue May 10 15:14:41 2016 +0200
@@ -7,14 +7,36 @@
 # GNU General Public License version 2 or any later version.
 
 '''setup for largefiles extension: uisetup'''
+from __future__ import absolute_import
 
-from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \
-    httppeer, merge, scmutil, sshpeer, wireproto, subrepo, copies, exchange
 from mercurial.i18n import _
-from mercurial.hgweb import hgweb_mod, webcommands
 
-import overrides
-import proto
+from mercurial.hgweb import (
+    hgweb_mod,
+    webcommands,
+)
+
+from mercurial import (
+    archival,
+    cmdutil,
+    commands,
+    copies,
+    exchange,
+    extensions,
+    filemerge,
+    hg,
+    httppeer,
+    merge,
+    scmutil,
+    sshpeer,
+    subrepo,
+    wireproto,
+)
+
+from . import (
+    overrides,
+    proto,
+)
 
 def uisetup(ui):
     # Disable auto-status for some commands which assume that all
diff -r b183dd2ee90f -r 4cb0bab46f0c tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Tue May 10 15:09:22 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 15:14:41 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/uisetup.py not using absolute_import
   hgext/largefiles/wirestore.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/win32text.py not using absolute_import


More information about the Mercurial-devel mailing list