strip: use absolute_import
authortimeless <timeless@mozdev.org>
Wed, 02 Mar 2016 21:26:36 +0000
changeset 28377 81ad683278b8
parent 28376 fa2cd0c9a567
child 28378 96a7368a79b6
strip: use absolute_import
hgext/strip.py
tests/test-check-py3-compat.t
--- a/hgext/strip.py	Fri Mar 04 14:44:32 2016 +0000
+++ b/hgext/strip.py	Wed Mar 02 21:26:36 2016 +0000
@@ -3,11 +3,23 @@
 This extension allows you to strip changesets and all their descendants from the
 repository. See the command help for details.
 """
+from __future__ import absolute_import
+
+from mercurial import (
+    bookmarks as bookmarksmod,
+    cmdutil,
+    error,
+    hg,
+    lock as lockmod,
+    merge,
+    node as nodemod,
+    repair,
+    scmutil,
+    util,
+)
 from mercurial.i18n import _
-from mercurial.node import nullid
-from mercurial.lock import release
-from mercurial import cmdutil, hg, scmutil, util, error
-from mercurial import repair, bookmarks as bookmarksmod , merge
+nullid = nodemod.nullid
+release = lockmod.release
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t	Fri Mar 04 14:44:32 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 21:26:36 2016 +0000
@@ -63,7 +63,6 @@
   hgext/schemes.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/shelve.py not using absolute_import
-  hgext/strip.py not using absolute_import
   hgext/transplant.py not using absolute_import
   hgext/win32mbcs.py not using absolute_import
   hgext/win32text.py not using absolute_import