[PATCH 5 of 8] record: use absolute_import

timeless timeless at mozdev.org
Wed Mar 2 16:55:50 EST 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1456954712 0
#      Wed Mar 02 21:38:32 2016 +0000
# Node ID fb0d12545c1d17a9c8053dc06fe1300ec3e1f4b4
# Parent  f948049750972b71f738c438663db56a01f53335
record: use absolute_import

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -6,10 +6,15 @@
 # GNU General Public License version 2 or any later version.
 
 '''commands to interactively select changes for commit/qrefresh'''
+from __future__ import absolute_import
 
+from mercurial import (
+    cmdutil,
+    commands,
+    error,
+    extensions,
+)
 from mercurial.i18n import _
-from mercurial import cmdutil, commands, extensions
-from mercurial import error
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
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
@@ -77,7 +77,6 @@
   hgext/patchbomb.py not using absolute_import
   hgext/purge.py not using absolute_import
   hgext/rebase.py not using absolute_import
-  hgext/record.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/transplant.py not using absolute_import
   hgext/win32mbcs.py not using absolute_import


More information about the Mercurial-devel mailing list