HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/_config/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/_config/__pycache__/display.cpython-36.pyc
3

���h��
@sfdZddlZddlZddlmZdaed�dd�ZdZ	ej
d��ejd	e�e	ejd
�WdQRXdS)z&
Unopinionated display configuration.
�N)�config)�returncCs�d}ytjjptjj}Wnttfk
r0YnX|sDd|j�krhytj�}Wntj	k
rfYnX|szd|j�kr�tj
�}ts�tj
�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_encodingsrz�
: 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rZpandas._configrZcfr�strrZpc_encoding_docZ
config_prefixZregister_optionZis_textrrrr�<module>s(