B
    u9a	  ã               @   sz   d Z ddlZddlZej d¡r,ddd„ZnJy
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 )NzUTF-8é   )ÚsysÚflagsÚ	utf8_modeÚ_localeÚ_getdefaultlocale)Údo_setlocale© r
   ú!/usr/lib/python3.7/_bootlocale.pyÚgetpreferredencoding   s    r   Zgetandroidapilevelc             C   s   dS )NzUTF-8r
   )r	   r
   r
   r   r      s    c             C   s   t jjrdS dd l}| | ¡S )NzUTF-8r   )r   r   r   Úlocaler   )r	   r   r
   r
   r   r      s    c             C   s.   t jjrdS t tj¡}|s*t jdkr*d}|S )NzUTF-8Údarwin)r   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   

