comparison 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
comparison
equal deleted inserted replaced
28295:01815c159856 28296:a73394e7b47c
2 # 2 #
3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> 3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7
8 '''discover and advertise repositories on the local network 7 '''discover and advertise repositories on the local network
9 8
10 Zeroconf-enabled repositories will be announced in a network without 9 Zeroconf-enabled repositories will be announced in a network without
11 the need to configure a server or a service. They can be discovered 10 the need to configure a server or a service. They can be discovered
12 without knowing their actual IP address. 11 without knowing their actual IP address.
21 :hg:`paths`:: 20 :hg:`paths`::
22 21
23 $ hg paths 22 $ hg paths
24 zc-test = http://example.com:8000/test 23 zc-test = http://example.com:8000/test
25 ''' 24 '''
26 25 from __future__ import absolute_import
27 import socket, time, os 26
28 27 import os
29 import Zeroconf 28 import socket
30 from mercurial import ui, hg, encoding, dispatch 29 import time
31 from mercurial import extensions 30
32 from mercurial.hgweb import server as servermod 31 from . import Zeroconf
32 from mercurial import (
33 dispatch,
34 encoding,
35 extensions,
36 hg,
37 ui,
38 )
39 from mercurial.hgweb import (
40 server as servermod
41 )
33 42
34 # Note for extension authors: ONLY specify testedwith = 'internal' for 43 # Note for extension authors: ONLY specify testedwith = 'internal' for
35 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 44 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
36 # be specifying the version(s) of Mercurial they are tested with, or 45 # be specifying the version(s) of Mercurial they are tested with, or
37 # leave the attribute unspecified. 46 # leave the attribute unspecified.