Mercurial > hg-stable
changeset 27523:68b9abf1cb82
exchange: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 23 Dec 2015 12:32:08 -0800 |
parents | 798535853345 |
children | f5b6b4e574c1 |
files | mercurial/exchange.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 29 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Wed Dec 23 12:30:14 2015 -0800 +++ b/mercurial/exchange.py Wed Dec 23 12:32:08 2015 -0800 @@ -5,16 +5,35 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -from node import hex, nullid -import errno, urllib, urllib2 -import util, scmutil, changegroup, base85, error -import discovery, phases, obsolete, bookmarks as bookmod, bundle2, pushkey -import lock as lockmod -import streamclone -import sslutil -import tags -import url as urlmod +from __future__ import absolute_import + +import errno +import urllib +import urllib2 + +from .i18n import _ +from .node import ( + hex, + nullid, +) +from . import ( + base85, + bookmarks as bookmod, + bundle2, + changegroup, + discovery, + error, + lock as lockmod, + obsolete, + phases, + pushkey, + scmutil, + sslutil, + streamclone, + tags, + url as urlmod, + util, +) # Maps bundle compression human names to internal representation. _bundlespeccompressions = {'none': None,
--- a/tests/test-check-py3-compat.t Wed Dec 23 12:30:14 2015 -0800 +++ b/tests/test-check-py3-compat.t Wed Dec 23 12:32:08 2015 -0800 @@ -101,7 +101,6 @@ mercurial/cmdutil.py not using absolute_import mercurial/commands.py not using absolute_import mercurial/dispatch.py requires print_function - mercurial/exchange.py not using absolute_import mercurial/httpclient/__init__.py not using absolute_import mercurial/httpclient/_readers.py not using absolute_import mercurial/httpclient/socketutil.py not using absolute_import