changeset 1837:c8b07459c9bb

serveronly: clean up imports remove unused one and arrange them
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 28 Feb 2017 16:12:34 +0100
parents 9e87ac06be90
children 6942750831bb
files hgext3rd/evolve/serveronly.py
diffstat 1 files changed, 12 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/serveronly.py	Tue Feb 28 14:31:28 2017 +0100
+++ b/hgext3rd/evolve/serveronly.py	Tue Feb 28 16:12:34 2017 +0100
@@ -11,28 +11,26 @@
 testedwith = '3.3 3.4-rc'
 buglink = 'https://bz.mercurial-scm.org/'
 
-import mercurial.obsolete
-
 import hashlib
 import struct
-from mercurial import error
-from mercurial import util
-from mercurial import wireproto
-from mercurial import extensions
-from mercurial import obsolete
 from cStringIO import StringIO
-from mercurial import node
+
+
+from mercurial import (
+    error,
+    exchange,
+    extensions,
+    localrepo,
+    node,
+    obsolete,
+    util,
+    wireproto
+)
 from mercurial.hgweb import hgweb_mod
-from mercurial import bundle2
-from mercurial import localrepo
-from mercurial import exchange
-from mercurial import node
 _pack = struct.pack
 
 gboptslist = gboptsmap = None
 try:
-    from mercurial import obsolete
-    from mercurial import wireproto
     gboptslist = getattr(wireproto, 'gboptslist', None)
     gboptsmap = getattr(wireproto, 'gboptsmap', None)
 except (ImportError, AttributeError):