serveronly: clean up imports
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 28 Feb 2017 16:12:34 +0100
changeset 1837 c8b07459c9bb
parent 1836 9e87ac06be90
child 1838 6942750831bb
serveronly: clean up imports remove unused one and arrange them
hgext3rd/evolve/serveronly.py
--- 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):