+Hx,dZddlmZmZmZddZdZdS)z requests._internal_utils ~~~~~~~~~~~~~~ Provides utility functions that are consumed internally by Requests which depend on extremely few external helpers (such as compat) )is_py2 builtin_strstrasciict|tr|}n2tr||}n||}|S)zGiven a string object, regardless of type, returns a representation of that string in the native string type, encoding and decoding where necessary. This assumes ASCII unless told otherwise. ) isinstancerrencodedecode)stringencodingouts /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/requests/_internal_utils.pyto_native_stringrsN &+&&*  *--))CC--))C Jct|tsJ |ddS#t$rYdSwxYw)zDetermine if unicode string only contains ASCII characters. :param str u_string: unicode string to check. Must be unicode and not Python 2 `str`. :rtype: bool rTF)rrr UnicodeEncodeError)u_strings runicode_is_asciirsX h $ $$$ $   t uus 0 >>N)r)__doc__compatrrrrrrrrs\-,,,,,,,,,         r