# HG changeset patch # User timeless # Date 2016-03-02 21:39:55 # Node ID 27996f78a64c40672e83c6a5cfe8e00b8bb640b6 # Parent 44ffbb2a4f5902dbb1061b33c148083011db2bf4 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 . '''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 @@ -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