Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/psycopg2/__pycache__/_ipaddress.cpython-39.pyc
Ðазад
a d�h� � @ sf d Z ddlmZmZmZmZmZ ddlmZ da da ddd�Zdd� Zdd d �Z ddd�Zd d� ZdS )z>Implementation of the ipaddres-based network types adaptation � )�new_type�new_array_type� register_type�register_adapter�QuotedString)� text_typeNc C sR ddl a tdu rt� atD ]}t|| � qt jt jt jt jfD ]}t|t � q>dS )a 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 r N) � ipaddress�_casters� _make_castersr � IPv4Interface� IPv6Interface�IPv4Network�IPv6Networkr �adapt_ipaddress)Zconn_or_curs�c�t� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/psycopg2/_ipaddress.py�register_ipaddress&