Patchwork [6,of,7] churn: use absolute_import

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 10, 2016, 1:52 a.m.
Message ID <769cf34b9926f66e1361.1455069161@7.1.168.192.in-addr.arpa>
Download mbox | patch
Permalink /patch/13085/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show

Comments

Gregory Szorc - Feb. 10, 2016, 1:52 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1455069045 28800
#      Tue Feb 09 17:50:45 2016 -0800
# Node ID 769cf34b9926f66e136143dd50f50dca335fd43e
# Parent  265d8d09b0be997064ea4b5ec4e0ff5e50eadf88
churn: use absolute_import

Patch

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -7,13 +7,24 @@ 
 # GNU General Public License version 2 or any later version.
 
 '''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)
 # Note for extension authors: ONLY specify testedwith = 'internal' for
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
@@ -31,9 +31,8 @@ 
   doc/check-seclevel.py not using absolute_import
   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
   hgext/convert/bzr.py not using absolute_import