%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyc

�
�ac@s�dZddlmZmZmZmZmZddlmZd	a
d	ad	d�Zd�Z
d	d�Zd	d�Zd�Zd	S(
s>Implementation of the ipaddres-based network types adaptation
i����(tnew_typetnew_array_typet
register_typetregister_adaptertQuotedString(t	text_typecCs|ddlatdkr$t�anxtD]}t||�q+Wx3tjtjtjtjgD]}t	|t
�qaWdS(s
    Register conversion support between `ipaddress` objects and `network types`__.

    :param conn_or_curs: the scope where to register the type casters.
        If `!None` register them globally.

    After the function is called, PostgreSQL :sql:`inet` values will be
    converted into `~ipaddress.IPv4Interface` or `~ipaddress.IPv6Interface`
    objects, :sql:`cidr` values into into `~ipaddress.IPv4Network` or
    `~ipaddress.IPv6Network`.

    .. __: https://www.postgresql.org/docs/current/static/datatype-net-types.html
    i����N(t	ipaddresst_casterstNonet
_make_castersRt
IPv4Interfacet
IPv6InterfacetIPv4NetworktIPv6NetworkRtadapt_ipaddress(tconn_or_curstctt((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pytregister_ipaddress%s
cCsXtd	dt�}td
d|�}tddt�}tdd|�}||||gS(
NietINETisINET[]i�tCIDRi�sCIDR[](ie(i(i�(i�(Rtcast_interfaceRtcast_network(tinettainettcidrtacidr((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyR	Bs
cCs#|dkrdStjt|��S(N(RRtip_interfaceR(tstcur((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyRLscCs#|dkrdStjt|��S(N(RRt
ip_networkR(RR((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyRSscCstt|��S(N(Rtstr(tobj((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyRYsN(t__doc__tpsycopg2.extensionsRRRRRtpsycopg2.compatRRRRRR	RRR(((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_ipaddress.pyt<module>s(	


Zerion Mini Shell 1.0