3
pd                 @   sf   d Z ddlZddlZddlmZ daed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)config)returnc              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rt j
 } tst 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-7vycvbft/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   strr   Zpc_encoding_docZconfig_prefixZregister_optionZis_textr   r   r   r   <module>   s   (