Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/test/__pycache__/util.cpython-39.pyc
Ðазад
a _�h� � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z e�ejdkpjejdkd�Z e�dejv d�Ze�dejv d �Ze�e�� d kd�Ze�e�� dko�ejd ko�ejdk d�Zdd� Ze�e� d�Zdd� Zdd� Zdd� Ze jdd� �ZdS )� N)�bind_unused_port�posix�cygwinznon-unix platformZTRAVISz!timing tests unreliable on travisZ NO_NETWORKznetwork access disabled�CPythonzNot CPython implementation�PyPy)� )� � zpypy3 5.8 has buggy ssl modulec C s~ t js dS d } zXzt � t j�} | �d� W n( t jyR Y W | d urN| �� dS 0 W | d urz| �� n| d urx| �� 0 dS )NF)z::1r T)�socket�has_ipv6�AF_INET6�bind�error�close)�sock� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/test/util.py�_detect_ipv6* s � � r zipv6 support not presentc C sT t � \} }| �d� t�� }|�d|f� | �� \}}|�� | �� |j|d fS )z�Returns a local port number that will refuse all connections. Return value is (cleanup_func, port); the cleanup function must be called to free the port to be reused. Tz 127.0.0.1� )r �setblockingr �connect�acceptr )Z server_socket�portZ client_socket�conn�client_addrr r r � refusing_port>