changeset 28382:27996f78a64c

purge: use absolute_import
author timeless <timeless@mozdev.org>
date Wed, 02 Mar 2016 21:39:55 +0000
parents 44ffbb2a4f59
children e13e0e189990
files hgext/purge.py tests/test-check-py3-compat.t
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/purge.py	Wed Mar 02 21:38:32 2016 +0000
+++ b/hgext/purge.py	Wed Mar 02 21:39:55 2016 +0000
@@ -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)
--- a/tests/test-check-py3-compat.t	Wed Mar 02 21:38:32 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 21:39:55 2016 +0000
@@ -56,7 +56,6 @@
   hgext/mq.py not using absolute_import
   hgext/notify.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