# HG changeset patch # User timeless # Date 1456935995 0 # Node ID 48b04018c89774e0350cf247ecf375d568066b4a # Parent c43c5e7167a2ca1f2910136ebbe643df27ee9955 convert: common use absolute_import diff -r c43c5e7167a2 -r 48b04018c897 hgext/convert/common.py --- 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 diff -r c43c5e7167a2 -r 48b04018c897 tests/test-check-py3-compat.t --- 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