Mercurial > hg
changeset 29126:7dd5d19c9773
py3: make hgext/hisedit.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 06 May 2016 21:52:26 +0530 |
parents | 9b12517a7081 |
children | fa161ac73b24 |
files | hgext/histedit.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 23 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Fri May 06 21:50:40 2016 +0530 +++ b/hgext/histedit.py Fri May 06 21:52:26 2016 +0530 @@ -169,30 +169,34 @@ """ -import pickle +from __future__ import absolute_import + import errno import os +import pickle import sys - -from mercurial import bundle2 -from mercurial import cmdutil -from mercurial import discovery -from mercurial import error -from mercurial import copies -from mercurial import context -from mercurial import destutil -from mercurial import exchange -from mercurial import extensions -from mercurial import hg -from mercurial import node -from mercurial import repair -from mercurial import scmutil -from mercurial import util -from mercurial import obsolete -from mercurial import merge as mergemod -from mercurial.lock import release +from mercurial import ( + bundle2, + cmdutil, + context, + copies, + destutil, + discovery, + error, + exchange, + extensions, + hg, + lock, + merge as mergemod, + node, + obsolete, + repair, + scmutil, + util, +) from mercurial.i18n import _ +release = lock.release cmdtable = {} command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t Fri May 06 21:50:40 2016 +0530 +++ b/tests/test-check-py3-compat.t Fri May 06 21:52:26 2016 +0530 @@ -10,7 +10,6 @@ hgext/hgcia.py not using absolute_import hgext/highlight/__init__.py not using absolute_import hgext/highlight/highlight.py not using absolute_import - hgext/histedit.py not using absolute_import hgext/largefiles/__init__.py not using absolute_import hgext/largefiles/basestore.py not using absolute_import hgext/largefiles/lfcommands.py not using absolute_import