https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/urllib3/packages/backports/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/urllib3/packages/backports/__pycache__/makefile.cpython-310.pyc
o

�~�`��@s(dZddlZddlmZ	ddd�ZdS)z�
backports.makefile
~~~~~~~~~~~~~~~~~~

Backports the Python 3 ``socket.makefile`` method for use with anything that
wants to create a "fake" socket object.
�N)�SocketIO�rc
Cst|�hd�kstd|f��d|v}d|vp|}|s |s J�d|v}d}	|r,|	d7}	|r2|	d7}	t||	�}
|jd7_|durDd	}|d
krKtj}|d
krW|sUtd��|
S|rc|rct�|
|
|�}n|rlt�|
|�}n
|spJ�t�|
|�}|rz|St�	||||�}||_
|S)z:
    Backport of ``socket.makefile`` from Python 3.5.
    >�br�wz&invalid mode %r (only r, w, b allowed)rrr��N���rz!unbuffered streams must be binary)�set�
ValueErrorr�_makefile_refs�io�DEFAULT_BUFFER_SIZE�BufferedRWPair�BufferedReader�BufferedWriter�
TextIOWrapper�mode)
�selfr�	buffering�encoding�errors�newline�writing�reading�binary�rawmode�raw�buffer�text�r�E/usr/lib/python3/dist-packages/urllib3/packages/backports/makefile.py�backport_makefile
s@
r!)rNNNN)�__doc__r�socketrr!rrrr �<module>s
�

https://t.me/RX1948 - 2025