| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���g@) � �� � d dl Zd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZ d dlm
Z
d dlmZ d dlmZ d dlmZ d dlZ d dlZd dlZd dlZd dlmZ d dlZej4 s e j6 d� �d � Zdad.d
�Zd� Zd/d�Z G d
� de!� Z" G d� de!� Z# G d� de jH � Z% G d� de jH � Z& G d� de jH � Z' G d� de jH e"e#� Z( G d� de jH � Z) G d� de jH � Z* G d� de jH e"� Z+ G d� d e jH � Z, G d!� d"e jH � Z- G d#� d$e jH � Z. G d%� d&e jH � Z/ G d'� d(e jH � Z0 G d)� d*e"e jH � Z1 G d+� d,e jH � Z2e3d-k( r e jh � yy# e$ r dZY ���w xY w)0� N)�patch)�support)� os_helper)�
socket_helper)�warnings_helper)� b64encodeztest requires gethostname()c �~ � t t | � � dd j � }t |� dk( rd|z }d|z S )N� � z0%s�%)�hex�ord�upper�len)�char�hex_reprs �%C:\Python312\\Lib\test\test_urllib.py� hexescaper sB � �+��3�t�9�~�a�b�!�'�'�)�H�
�8�}����8�#����>�� c �� � |�!t j j |�� }nt s
t � }|ant }|�|j | � S |j | |� S )N)�proxies)�urllib�request�FancyURLopener�
_urlopener�open)�url�datar �openers r �urlopenr * s\ � �8������.�.�w�.�?��
��!���
����|��{�{�3����{�{�3��%�%r c � � t j dt f� 5 t j j � cd d d � S # 1 sw Y y xY w)Nz8FancyURLopener style of invoking requests is deprecated.)r �check_warnings�DeprecationWarningr r r � r r r r : s= � � � '� '�
G��
�
!� �~�~�,�,�.�
!�
!�
!�s �A�A
c � ���� G �fd�dt j � � G ��fd�dt j j � �| �_ �S )Nc �8 �� e Zd ZdZ� fd�Zd� Zdd�Zdd�Zd� Zy) �fakehttp.<locals>.FakeSocketr c � �� |�_ y �N)�buf)�selfr �FakeHTTPConnections �r �sendallz$fakehttp.<locals>.FakeSocket.sendallE s �� �%)��"r c �0 � | xj dz
c_ | S )Nr )�io_refs)r+ �args�kwdss r �makefilez%fakehttp.<locals>.FakeSocket.makefileH s � ��L�L�A��L��Kr Nc �\ � | j ryt j j | |� S �Nr )�closed�io�BytesIO�read)r+ �amts r r8 z!fakehttp.<locals>.FakeSocket.readL s! � ��{�{���:�:�?�?�4��-�-r c �\ � | j ryt j j | |� S r4 )r5 r6 r7 �readline)r+ �lengths r r; z%fakehttp.<locals>.FakeSocket.readlineQ s# � ��{�{���:�:�&�&�t�V�4�4r c � � | xj dz c_ | j dk( r t j j | � y y )Nr r )r/ r6 r7 �close�r+ s r r>