init: move to new style import
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:44:37 -0700
changeset 1932 880aac9dbfa6
parent 1931 1cc2b87c91df
child 1933 ca8674a8fce4
init: move to new style import This unify with the new core Mercurial usage and this will make future changes to the imports easier to track.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Wed Mar 30 03:56:14 2016 -0700
+++ b/hgext3rd/topic/__init__.py	Wed Mar 30 03:44:37 2016 -0700
@@ -10,37 +10,43 @@
 This is sort of similar to a bookmark, but it applies to a whole
 series instead of a single revision.
 """
+from __future__ import absolute_import
+
 import contextlib
 import re
 
 from mercurial.i18n import _
-from mercurial import branchmap
-from mercurial import bundle2
-from mercurial import changegroup
-from mercurial import cmdutil
-from mercurial import commands
-from mercurial import context
-from mercurial import discovery as discoverymod
-from mercurial import error
-from mercurial import exchange
-from mercurial import extensions
-from mercurial import localrepo
-from mercurial import lock
-from mercurial import merge
-from mercurial import namespaces
-from mercurial import node
-from mercurial import obsolete
-from mercurial import patch
-from mercurial import phases
-from mercurial import util
-from mercurial import wireproto
+from mercurial import (
+    branchmap,
+    bundle2,
+    changegroup,
+    cmdutil,
+    commands,
+    context,
+    discovery as discoverymod,
+    error,
+    exchange,
+    extensions,
+    localrepo,
+    lock,
+    merge,
+    namespaces,
+    node,
+    obsolete,
+    patch,
+    phases,
+    util,
+    wireproto,
+)
 
-from . import constants
-from . import revset as topicrevset
-from . import destination
-from . import stack
-from . import topicmap
-from . import discovery
+from . import (
+    constants,
+    revset as topicrevset,
+    destination,
+    stack,
+    topicmap,
+    discovery,
+)
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)