403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/utils/__pycache__/encoding.cpython-311.pyc
�

�@�c��F�dZddlZddlZddlZdd�Zdd�Ze��ZdS)z+
Utilities for dealing with text encodings
�Nc�B�t|d��r|js|S|jS)a)Return the given stream's encoding or a default.

    There are cases where ``sys.std*`` might not actually be a stream, so
    check for the encoding attribute prior to returning it, and return
    a default if it doesn't exist or evaluates as False. ``default``
    is None if not provided.
    �encoding)�hasattrr)�stream�defaults  �8/usr/lib/python3/dist-packages/IPython/utils/encoding.py�get_stream_encr	s,���6�:�&�&��f�o�������Tc��d}|rttj��}|r|dkr%	tj��}n#t
$rYnwxYw|ptj��}|dkrtjdt��dS|S)a�Return IPython's guess for the default encoding for bytes as text.

    If prefer_stream is True (default), asks for stdin.encoding first,
    to match the calling Terminal, but that is often None for subprocesses.

    Then fall back on locale.getpreferredencoding(),
    which should be a sensible platform default (that respects LANG environment),
    and finally to sys.getdefaultencoding() which is the most conservative option,
    and usually UTF8 as of Python 3.
    N�ascii�cp0z�Invalid code page cp0 detected - using cp1252 instead.If cp1252 is incorrect please ensure a valid code page is defined for the process.�cp1252)
r	�sys�stdin�locale�getpreferredencoding�	Exception�getdefaultencoding�warnings�warn�RuntimeWarning)�
prefer_stream�encs  rrr&s����C��(��S�Y�'�'����#�w�,�,�	��-�/�/�C�C���	�	�	��D�	����

�
)��'�)�)�C��e�|�|��
�
*�+9�	;�	;�	;��x��Js�;�
A�A)N)T)�__doc__rrrr	r�DEFAULT_ENCODING�r
r�<module>rsl�����
�
�
�
�
�
�
���������"����B&�%�'�'���r

Youez - 2016 - github.com/yon3zu
LinuXploit