U af@sHddlmZmZmZmZddlZddlmZeZ ddgZ ddZ dS) )unicode_literalsdivisionabsolute_importprint_functionN)str_clszutf-8cp1252c Csfz t|tWStk rXtD]2}zt||ddWYStk rPYq Xq YnXt|ddS)z Tries decoding a byte string from the OS into a unicode string :param byte_string: A byte string :return: A unicode string strict)errorsreplace)r _encodingUnicodeDecodeError_fallback_encodings)Z byte_stringencodingrF/opt/nydus/tmp/pip-target-53d1vnqk/lib/python/oscrypto/_win/_decode.py _try_decode s  r) __future__rrrrlocale_typesrgetpreferredencodingr rrrrrrs