Patchwork [5,of,8] record: use absolute_import

login
register
mail settings
Submitter timeless@mozdev.org
Date March 2, 2016, 9:55 p.m.
Message ID <fb0d12545c1d17a9c805.1456955750@waste.org>
Download mbox | patch
Permalink /patch/13568/
State Accepted
Delegated to: Augie Fackler
Headers show

Comments

timeless@mozdev.org - March 2, 2016, 9:55 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1456954712 0
#      Wed Mar 02 21:38:32 2016 +0000
# Node ID fb0d12545c1d17a9c8053dc06fe1300ec3e1f4b4
# Parent  f948049750972b71f738c438663db56a01f53335
record: use absolute_import

Patch

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