U
    ”¼pd	  ã                   @   sz   d Z ddlZddlZej d¡r,ddd„ZnJz
ej W n4 ek
rj   eedƒr\ddd„Zn
dd	d„ZY nX dd
d„ZdS )zÐA minimal subset of the locale module used at interpreter startup
(imported by the _io module), in order to reduce startup time.

Don't import directly from third-party code; use the `locale` module instead!
é    NÚwinTc                 C   s   t jjrdS t ¡ d S )NúUTF-8é   )ÚsysÚflagsÚ	utf8_modeÚ_localeZ_getdefaultlocale©Údo_setlocale© r   ú!/usr/lib/python3.8/_bootlocale.pyÚgetpreferredencoding   s    r   Zgetandroidapilevelc                 C   s   dS )Nr   r   r	   r   r   r   r      s    c                 C   s   t jjrdS dd l}| | ¡S )Nr   r   )r   r   r   Úlocaler   )r
   r   r   r   r   r      s    c                 C   s6   | rt ‚tjjrdS t tj¡}|s2tjdkr2d}|S )Nr   Údarwin)ÚAssertionErrorr   r   r   r   Únl_langinfoÚCODESETÚplatform)r
   Úresultr   r   r   r   !   s    )T)T)T)T)	Ú__doc__r   r   r   Ú
startswithr   r   ÚAttributeErrorÚhasattrr   r   r   r   Ú<module>   s   

