[PATCH 6 of 8] purge: use absolute_import

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


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1456954795 0
#      Wed Mar 02 21:39:55 2016 +0000
# Node ID f2baf07380e5be2bd9908220e7f5889fb8b822ce
# Parent  fb0d12545c1d17a9c8053dc06fe1300ec3e1f4b4
purge: use absolute_import

diff --git a/hgext/purge.py b/hgext/purge.py
--- a/hgext/purge.py
+++ b/hgext/purge.py
@@ -23,10 +23,18 @@
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
 
 '''command to delete untracked files from the working directory'''
+from __future__ import absolute_import
 
-from mercurial import util, commands, cmdutil, scmutil, error
+import os
+
+from mercurial import (
+    cmdutil,
+    commands,
+    error,
+    scmutil,
+    util,
+)
 from mercurial.i18n import _
-import os
 
 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
@@ -75,7 +75,6 @@
   hgext/notify.py not using absolute_import
   hgext/pager.py not using absolute_import
   hgext/patchbomb.py not using absolute_import
-  hgext/purge.py not using absolute_import
   hgext/rebase.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/transplant.py not using absolute_import


More information about the Mercurial-devel mailing list