[PATCH 4 of 7] py3: use absolute_import in histedit.py
Robert Stanca
robert.stanca7 at gmail.com
Sun Apr 17 13:17:03 EDT 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1460912215 -10800
# Sun Apr 17 19:56:55 2016 +0300
# Node ID ef5458f0a3f8827acbf4fcfe83a387d8deb50bcd
# Parent 1e9f868dfa15c8e409c670ad5236396f5ca39cde
py3: use absolute_import in histedit.py
diff -r 1e9f868dfa15 -r ef5458f0a3f8 hgext/histedit.py
--- a/hgext/histedit.py Sun Apr 17 19:55:43 2016 +0300
+++ b/hgext/histedit.py Sun Apr 17 19:56:55 2016 +0300
@@ -169,29 +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.i18n import _
+from mercurial.i18n import (
+ _,
+)
+from mercurial import (
+ bundle2,
+ cmdutil,
+ context,
+ copies,
+ destutil,
+ discovery,
+ error,
+ exchange,
+ extensions,
+ hg,
+ lock,
+ merge as mergemod,
+ node,
+ obsolete,
+ repair,
+ scmutil,
+ util,
+)
+release = lock.release
cmdtable = {}
command = cmdutil.command(cmdtable)
diff -r 1e9f868dfa15 -r ef5458f0a3f8 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Sun Apr 17 19:55:43 2016 +0300
+++ b/tests/test-check-py3-compat.t Sun Apr 17 19:56:55 2016 +0300
@@ -21,7 +21,6 @@
hgext/hgk.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
More information about the Mercurial-devel
mailing list