censor: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 09 Feb 2016 17:33:10 -0800
changeset 28092 5166b7a84b72
parent 28091 2f0384242b35
child 28093 7353cacd5d54
censor: use absolute_import
hgext/censor.py
tests/test-check-py3-compat.t
--- a/hgext/censor.py	Tue Feb 09 17:31:50 2016 -0800
+++ b/hgext/censor.py	Tue Feb 09 17:33:10 2016 -0800
@@ -25,10 +25,20 @@
 revisions if they are allowed by the "censor.policy=ignore" config option.
 """
 
+from __future__ import absolute_import
+
+from mercurial.i18n import _
 from mercurial.node import short
-from mercurial import cmdutil, error, filelog, revlog, scmutil, util
-from mercurial.i18n import _
-from mercurial import lock as lockmod
+
+from mercurial import (
+    cmdutil,
+    error,
+    filelog,
+    lock as lockmod,
+    revlog,
+    scmutil,
+    util,
+)
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t	Tue Feb 09 17:31:50 2016 -0800
+++ b/tests/test-check-py3-compat.t	Tue Feb 09 17:33:10 2016 -0800
@@ -32,7 +32,6 @@
   doc/gendoc.py not using absolute_import
   doc/hgmanpage.py not using absolute_import
   hgext/__init__.py not using absolute_import
-  hgext/censor.py not using absolute_import
   hgext/children.py not using absolute_import
   hgext/churn.py not using absolute_import
   hgext/clonebundles.py not using absolute_import