3
���h� �
@ sf d Z ddlZddlZddlmZ daed�dd�ZdZ ej
d�� ejd e� e ejd
� W dQ R X dS )z&
Unopinionated display configuration.
� N)�config)�returnc C s� d} yt jjpt jj} W n ttfk
r0 Y nX | sDd| j� krhytj� } W n tj k
rf Y nX | szd| j� kr�t j
� } ts�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-5_djhm0z/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 Zpandas._configr Zcfr �strr Zpc_encoding_docZ
config_prefixZregister_optionZis_textr r r r �<module> s ( |