o
    Œõ±j‘  ã                   @   sH   d dl mZmZmZmZ d dlZddlmZ e ¡ Z	ddgZ
dd„ ZdS )	é    )Úunicode_literalsÚdivisionÚabsolute_importÚprint_functionNé   )Ústr_clszutf-8Úcp1252c                 C   s`   zt | tƒW S  ty)   tD ]}zt | |dd�W    Y S  ty&   Y qw Y nw t | dd�S )zž
    Tries decoding a byte string from the OS into a unicode string

    :param byte_string:
        A byte string

    :return:
        A unicode string
    Ústrict)ÚerrorsÚreplace)r   Ú	_encodingÚUnicodeDecodeErrorÚ_fallback_encodings)Úbyte_stringÚencoding© r   úˆ/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/oscrypto/_win/_decode.pyÚ_try_decode   s   ÿýÿr   )Ú
__future__r   r   r   r   ÚlocaleÚ_typesr   Úgetpreferredencodingr   r   r   r   r   r   r   Ú<module>   s   