changeset 28410:48b04018c897

convert: common use absolute_import
author timeless <timeless@mozdev.org>
date Wed, 02 Mar 2016 16:26:35 +0000
parents c43c5e7167a2
children 098bb5660580
files hgext/convert/common.py tests/test-check-py3-compat.t
diffstat 2 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Wed Mar 02 16:23:28 2016 +0000
+++ b/hgext/convert/common.py	Wed Mar 02 16:26:35 2016 +0000
@@ -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
--- a/tests/test-check-py3-compat.t	Wed Mar 02 16:23:28 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 16:26:35 2016 +0000
@@ -23,7 +23,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