
    Owg                        U d Z ddlmZ ddlZddlZddlmZ dade	d<   ddZ
dZ ej                  d	      5   ej                  d
 e
       eej                         ddd       y# 1 sw Y   yxY w)z&
Unopinionated display configuration.
    )annotationsN)configz
str | None_initial_defencodingc                    d} 	 t         j                  j                  xs t         j                  j                  } | rd| j                         v r	 t        j                         } | rd| j                         v rt        j                         } t        st        j                         a| S # t        t
        f$ r Y ~w xY w# t        j                  $ r Y nw xY w)z
    Try to find the most capable encoding supported by the console.
    slightly modified from the way IPython handles the same issue.
    Nascii)sysstdoutencodingstdinAttributeErrorOSErrorlowerlocalegetpreferredencodingErrorgetdefaultencodingr   )r
   s    M/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/_config/display.pydetect_console_encodingr      s     H::&&<#))*<*<
 w(.."22	224H w(.."22))+  "557O- G$  || 	 		s#   6B' B< 'B98B9<CCz
: str/unicode
    Defaults to the detected encoding of the console.
    Specifies the encoding to be used for strings returned by to_string,
    these are generally strings meant to be displayed on the console.
displayr
   )	validator)returnstr)__doc__
__future__r   r   r   pandas._configr   cfr   __annotations__r   pc_encoding_docconfig_prefixregister_optionis_text     r   <module>r$      sz    #  
 ' $( j ' F Ri  B+-"**  s   &A&&A/