Ë
    7;h  ã                   ó>   — d Z ddlZddlZddlZdd„Zdd„Z e«       Zy)z+
Utilities for dealing with text encodings
é    Nc                 óN   — 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     úg/workspace/moltex-experiments/.pixi/envs/default/lib/python3.12/site-packages/IPython/utils/encoding.pyÚget_stream_encr	      s#   € ô �6˜:Ô&¨f¯oªoØˆà�‰Ðó    c                 ó  — d}| rt        t        j                  «      }|r|dk(  r	 t        j                  «       }|xs t        j                  «       }|dk(  rt        j                  dt        «       y|S # t
        $ r Y ŒEw xY w)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™YÓ'ˆÙ�#�w’,ð	ô ×-Ñ-Ó/ˆCð Ò
)”×'Ñ'Ó)€Cð ˆe‚|Ü�‰ð*ä+9ô	;ð Ø€Jøô ò 	Ùð	ús   ¦A4 Á4	B Á?B )N)T)Ú__doc__r   r   r   r	   r   ÚDEFAULT_ENCODING© r
   r   Ú<module>r      s+   ðñó Û Û óó"ñB &Ó'Ñ r
   