Mercurial > hg
changeset 27332:04f346b8768f
obsolete: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 12 Dec 2015 13:30:47 -0500 |
parents | 35e69407b1ac |
children | 2c60b4b2a0de |
files | mercurial/obsolete.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py Sat Dec 12 13:27:31 2015 -0500 +++ b/mercurial/obsolete.py Sat Dec 12 13:30:47 2015 -0500 @@ -67,10 +67,20 @@ comment associated with each format for details. """ -import errno, struct -import util, base85, node, parsers, error -import phases -from i18n import _ +from __future__ import absolute_import + +import errno +import struct + +from .i18n import _ +from . import ( + base85, + error, + node, + parsers, + phases, + util, +) _pack = struct.pack _unpack = struct.unpack
--- a/tests/test-check-py3-compat.t Sat Dec 12 13:27:31 2015 -0500 +++ b/tests/test-check-py3-compat.t Sat Dec 12 13:30:47 2015 -0500 @@ -122,7 +122,6 @@ mercurial/mail.py requires print_function mercurial/manifest.py not using absolute_import mercurial/mdiff.py not using absolute_import - mercurial/obsolete.py not using absolute_import mercurial/patch.py not using absolute_import mercurial/pure/base85.py not using absolute_import mercurial/pure/bdiff.py not using absolute_import