NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/urllib3/packages/backports/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/urllib3/packages/backports/makefile.pyc
�
��abc@s>dZddlZddlmZdddddd�ZdS(s�
backports.makefile
~~~~~~~~~~~~~~~~~~

Backports the Python 3 ``socket.makefile`` method for use with anything that
wants to create a "fake" socket object.
i����N(tSocketIOtrc
Cs�t|�tdddg�ks7td|f��nd|k}d|kpS|}|sh|sht�d|k}d}	|r�|	d7}	n|r�|	d7}	nt||	�}
|jd7_|d
kr�d}n|dkr�tj}n|dkr|std	��n|
S|r4|r4tj|
|
|�}n9|rOtj	|
|�}n|s[t�tj
|
|�}|rw|Stj||||�}||_|S(s:
    Backport of ``socket.makefile`` from Python 3.5.
    Rtwtbs&invalid mode %r (only r, w, b allowed)tii����is!unbuffered streams must be binaryN(
tsett
ValueErrortAssertionErrorRt_makefile_refstNonetiotDEFAULT_BUFFER_SIZEtBufferedRWPairtBufferedReadertBufferedWritert
TextIOWrappertmode(
tselfRt	bufferingtencodingterrorstnewlinetwritingtreadingtbinarytrawmodetrawtbufferttext((sS/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/packages/backports/makefile.pytbackport_makefilesB!

		(t__doc__R
tsocketRR	R(((sS/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/packages/backports/makefile.pyt<module>s	

NineSec Team - 2022