[PATCH 3 of 7] convert: common use absolute_import

timeless timeless at mozdev.org
Tue Mar 8 23:25:15 EST 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1456935995 0
#      Wed Mar 02 16:26:35 2016 +0000
# Node ID 81f563d9b69385a37f1f45de5be67340dc87f075
# Parent  4a018b83a1400b622d21df3092b186dced9f0a81
convert: common use absolute_import

diff --git a/hgext/convert/common.py b/hgext/convert/common.py
--- a/hgext/convert/common.py
+++ b/hgext/convert/common.py
@@ -4,10 +4,21 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
+from __future__ import absolute_import
 
-import base64, errno, subprocess, os, datetime, re
+import base64
 import cPickle as pickle
-from mercurial import phases, util, error
+import datetime
+import errno
+import os
+import re
+import subprocess
+
+from mercurial import (
+    error,
+    phases,
+    util,
+)
 from mercurial.i18n import _
 
 propertycache = util.propertycache
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
@@ -26,7 +26,6 @@
   hgext/color.py not using absolute_import
   hgext/convert/__init__.py not using absolute_import
   hgext/convert/bzr.py not using absolute_import
-  hgext/convert/common.py not using absolute_import
   hgext/convert/cvs.py not using absolute_import
   hgext/convert/transport.py not using absolute_import
   hgext/eol.py not using absolute_import


More information about the Mercurial-devel mailing list