§
    �Ÿj  ã                   óF   — d Z ddlZddlZddlZdd„Zdd„Z e¦   «         ZdS )z+
Utilities for dealing with text encodings
é    Nc                 óB   — t          | d¦  «        r| j        s|S | j        S )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     úc/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/IPython/utils/encoding.pyÚget_stream_encr	      s,   € õ �6˜:Ñ&Ô&ð ¨f¬oð ØˆàŒÐó    Tc                 ó  — d}| rt          t          j        ¦  «        }|r|dk    r%	 t          j        ¦   «         }n# t
          $ r Y nw xY w|pt          j        ¦   «         }|dk    rt          j        dt          ¦  «         dS |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     r   r   r   &   s­   € ð €CØð (Ý�SœYÑ'Ô'ˆØð �#�w’,�,ð	õ Ô-Ñ/Ô/ˆCˆCøÝð 	ð 	ð 	ØˆDð	øøøà
Ð
)•Ô'Ñ)Ô)€Cð ˆe‚|€|ÝŒð*å+9ñ	;ô 	;ð 	;ð ˆxØ€Js   §; »
AÁA)N)T)Ú__doc__r   r   r   r	   r   ÚDEFAULT_ENCODING© r
   r   ú<module>r      sl   ððð ð €
€
€
Ø €€€Ø €€€ðð ð ð ð"ð ð ð ðB &Ð%Ñ'Ô'Ð Ð Ð r
   