File: //proc/self/root/proc/self/root/lib64/python2.7/site-packages/hgext/zeroconf/__init__.pyc
�
1�3\c @@ sz d Z d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m
Z
m Z m Z m
Z d d l m Z d Z d a d a d � Z d
� Z d � Z d e f d
� � YZ d � Z d � Z d � Z d � Z d � Z d � Z e j e d e � e j e j
d e � e j e j
d e � e j e j
d e � e j e d e � e j e d e � d S( s� discover and advertise repositories on the local network
Zeroconf-enabled repositories will be announced in a network without
the need to configure a server or a service. They can be discovered
without knowing their actual IP address.
To allow other people to discover your repository using run
:hg:`serve` in your repository::
$ cd test
$ hg serve
You can discover Zeroconf-enabled repositories by running
:hg:`paths`::
$ hg paths
zc-test = http://example.com:8000/test
i ( t absolute_importNi ( t Zeroconf( t dispatcht encodingt
extensionst hgt ui( t servers ships-with-hg-corec C@ s y= t j t j t j � } | j d � | j � d } | SWn t j k
rS n XyI t j t j � � d d } d | k r� d } n | j d � s� | SWn# t j t j
f k
r� d } n Xy= t j t j t j � } | j d � | j � d } | SWn t j k
rn X| S(
Ns 1.0.0.1i i t :s 127.0.0.1s 127.i ( s 1.0.0.1i ( s 1.0.0.1i ( t sockett AF_INETt
SOCK_DGRAMt connectt getsocknamet errort
gethostbyaddrt gethostnamet
startswitht gaierrort herror( t st ipt dumbip( ( s= /usr/lib64/python2.7/site-packages/hgext/zeroconf/__init__.pyt getip6 s.
c C@ s, t sC t � } | j d � r"