3
Êb_Ô  ã               @   s`   d Z ddlZddlZddlmZ dadd„ ZdZej	dƒ� ej
deƒ eejd	� W dQ R X dS )
z&
Unopinionated display configuration.
é    N)Úconfigc              C   s’   d} yt jjpt jj} W n ttfk
r0   Y nX |  sDd| jƒ krhytjƒ } W n tj	k
rf   Y nX |  szd| jƒ kr‚t j
ƒ } tsŽt j
ƒ a| S )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ÚIOErrorÚlowerÚlocaleÚgetpreferredencodingÚErrorÚgetdefaultencodingÚ_initial_defencoding)r   © r   ú8/tmp/pip-build-jkwsxyiy/pandas/pandas/_config/display.pyÚdetect_console_encoding   s    r   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   )Z	validator)Ú__doc__r   r   Zpandas._configr   Zcfr   r   Zpc_encoding_docZconfig_prefixZregister_optionZis_textr   r   r   r   Ú<module>   s   (