î
z­cR7  ã               @   s„   d  Z  d d l Z d d l Z e j j d ƒ rB d d d „ Z n> y e j Wn! e k
 rp d d d „ Z Yn Xd 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 ƒ  d S)Né   )Ú_localeZ_getdefaultlocale)Údo_setlocale© r   úAD:\SoftWare\3d\tetraface\Metasequoia432\Python\Lib\_bootlocale.pyÚgetpreferredencoding   s    r   c             C   s   d d  l  } | j |  ƒ S)Nr   )Úlocaler   )r   r	   r   r   r   r      s    c             C   sB   |  s t  ‚ t j t j ƒ } | r> t j d k r> d } n  | S)NÚdarwinzUTF-8)ÚAssertionErrorr   Znl_langinfoÚCODESETÚsysÚplatform)r   Úresultr   r   r   r      s
    	)Ú__doc__r   r   r   Ú
startswithr   r   ÚAttributeErrorr   r   r   r   Ú<module>   s   