# HG changeset patch # User timeless # Date 2016-03-02 16:26:35 # Node ID 48b04018c89774e0350cf247ecf375d568066b4a # Parent c43c5e7167a2ca1f2910136ebbe643df27ee9955 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 @@ -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