destination: move to new style import
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:44:47 -0700
changeset 1933 ca8674a8fce4
parent 1932 880aac9dbfa6
child 1934 9d6d30e36cdd
destination: 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/destination.py
--- a/hgext3rd/topic/destination.py	Wed Mar 30 03:44:37 2016 -0700
+++ b/hgext3rd/topic/destination.py	Wed Mar 30 03:44:47 2016 -0700
@@ -1,9 +1,13 @@
-from mercurial import error
-from mercurial import util
-from mercurial import destutil
-from mercurial import extensions
-from mercurial import bookmarks
+from __future__ import absolute_import
+
 from mercurial.i18n import _
+from mercurial import (
+    bookmarks,
+    destutil,
+    error,
+    extensions,
+    util,
+)
 
 def _destmergebranch(orig, repo, action='merge', sourceset=None, onheadcheck=True):
     p1 = repo['.']