changeset 439:6cff54825233

obsolete: reorder import
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 07 Aug 2012 15:05:04 +0200
parents b1b7b5ef506a
children 5fa287e5087e
files hgext/obsolete.py
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/obsolete.py	Tue Aug 07 15:04:03 2012 +0200
+++ b/hgext/obsolete.py	Tue Aug 07 15:05:04 2012 +0200
@@ -39,11 +39,7 @@
 
 """
 
-import sys
 
-from mercurial.i18n import _
-
-import json
 
 from mercurial import util
 
@@ -53,17 +49,19 @@
 except ImportError:
         raise util.Abort('Obsolete extension requires Mercurial 2.3 (or later)')
 
+import sys
+from mercurial.i18n import _
+from mercurial import cmdutil
+from mercurial import commands
 from mercurial import context
-from mercurial import revset
-from mercurial import scmutil
-from mercurial import extensions
 from mercurial import discovery
 from mercurial import error
-from mercurial import commands
+from mercurial import extensions
 from mercurial import phases
+from mercurial import revset
+from mercurial import scmutil
+from mercurial import templatekw
 from mercurial.node import bin, short, nullid
-from mercurial import cmdutil
-from mercurial import templatekw
 
 # This extension hold the following code
 #
@@ -945,6 +943,8 @@
 # Code related to detection and management of older legacy format never
 # handled by core
 
+import json
+
 @eh.reposetup
 def _checkoldobsolete(ui, repo):
     """Detect that a repo still carry some old obsolete format