Patchwork [6,of,8] purge: use absolute_import

login
register
mail settings
Submitter timeless@mozdev.org
Date March 2, 2016, 9:55 p.m.
Message ID <f2baf07380e5be2bd990.1456955751@waste.org>
Download mbox | patch
Permalink /patch/13569/
State Accepted
Commit 27996f78a64c40672e83c6a5cfe8e00b8bb640b6
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 1456954795 0
#      Wed Mar 02 21:39:55 2016 +0000
# Node ID f2baf07380e5be2bd9908220e7f5889fb8b822ce
# Parent  fb0d12545c1d17a9c8053dc06fe1300ec3e1f4b4
purge: use absolute_import

Patch

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