revset: move to new style import
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 03:45:10 -0700
changeset 1935 11d740319280
parent 1934 9d6d30e36cdd
child 1936 31583ddda6d9
revset: 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/revset.py
--- a/hgext3rd/topic/revset.py	Wed Mar 30 03:44:59 2016 -0700
+++ b/hgext3rd/topic/revset.py	Wed Mar 30 03:45:10 2016 -0700
@@ -1,9 +1,17 @@
-from mercurial import error
-from mercurial import revset
-from mercurial import util
+from __future__ import absolute_import
+
 from mercurial.i18n import _
+from mercurial import (
+    error,
+    revset,
+    util,
+)
 
-from . import constants, destination, stack
+from . import (
+    constants,
+    destination,
+    stack,
+)
 
 try:
     mkmatcher = revset._stringmatcher