changeset 28094:79fc627578ac

churn: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 09 Feb 2016 17:50:45 -0800
parents 7353cacd5d54
children 7fa139eaebb4
files hgext/churn.py tests/test-check-py3-compat.t
diffstat 2 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/churn.py	Tue Feb 09 17:34:32 2016 -0800
+++ b/hgext/churn.py	Tue Feb 09 17:50:45 2016 -0800
@@ -8,11 +8,22 @@
 
 '''command to display statistics about repository history'''
 
+from __future__ import absolute_import
+
+import datetime
+import os
+import time
+
 from mercurial.i18n import _
-from mercurial import patch, cmdutil, scmutil, util, commands, error
-from mercurial import encoding
-import os
-import time, datetime
+from mercurial import (
+    cmdutil,
+    commands,
+    encoding,
+    error,
+    patch,
+    scmutil,
+    util,
+)
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t	Tue Feb 09 17:34:32 2016 -0800
+++ b/tests/test-check-py3-compat.t	Tue Feb 09 17:50:45 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/churn.py not using absolute_import
   hgext/clonebundles.py not using absolute_import
   hgext/color.py not using absolute_import
   hgext/convert/__init__.py not using absolute_import