a �DOg �@sxdZddlZddlZej�d�r,d dd�ZnHz ejWn2eyheed�rZd dd�Zn d d d�ZYn 0dd d�ZdS)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�winTcCstjjr dSt��dS)N�UTF-8�)�sys�flags� utf8_mode�_locale�_getdefaultlocale�� do_setlocale�r �#/usr/lib64/python3.9/_bootlocale.py�getpreferredencoding sr�getandroidapilevelcCsdS)Nrr r r r r rscCstjjr dSddl}|�|�S)Nrr)rrr�localer)r rr r r rscCs.tjjr dSt�tj�}|s*tjdkr*d}|S)Nr�darwin)rrrr� nl_langinfo�CODESET�platform)r �resultr r r r!s  )T)T)T)T) �__doc__rrr� startswithrr�AttributeError�hasattrr r r r �s