Mercurial > public > mercurial-scm > hg
diff hgext/zeroconf/__init__.py @ 28296:a73394e7b47c
zeroconf: use absolute_import
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 01 Mar 2016 08:42:46 +0000 |
parents | 6d0d11731e1c |
children | 4de74eda1d65 |
line wrap: on
line diff
--- a/hgext/zeroconf/__init__.py Tue Mar 01 07:17:32 2016 +0000 +++ b/hgext/zeroconf/__init__.py Tue Mar 01 08:42:46 2016 +0000 @@ -4,7 +4,6 @@ # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. - '''discover and advertise repositories on the local network Zeroconf-enabled repositories will be announced in a network without @@ -23,13 +22,23 @@ $ hg paths zc-test = http://example.com:8000/test ''' +from __future__ import absolute_import -import socket, time, os +import os +import socket +import time -import Zeroconf -from mercurial import ui, hg, encoding, dispatch -from mercurial import extensions -from mercurial.hgweb import server as servermod +from . import Zeroconf +from mercurial import ( + dispatch, + encoding, + extensions, + hg, + ui, +) +from mercurial.hgweb import ( + server as servermod +) # Note for extension authors: ONLY specify testedwith = 'internal' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should