7,jdZddlZddlmZejdZejdZejdZejdZeefZ eefZ e e e e iZ dd e e zd e d e fd Zde d efdZdS)z requests._internal_utils ~~~~~~~~~~~~~~ Provides utility functions that are consumed internally by Requests which depend on extremely few external helpers (such as compat) N) builtin_strs^[^:\s][^:\r\n]*\Zz^[^:\s][^:\r\n]*\Zs^\S[^\r\n]*\Z|^\Zz^\S[^\r\n]*\Z|^\Zasciistringencodingreturnc`t|tr|}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. ) isinstancerdecode)rrouts HC:\PYTHON\GemmaClient\venv\Lib\site-packages\requests/_internal_utils.pyto_native_stringrs3 &+&&&mmH%% Ju_stringct|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)r strencodeUnicodeEncodeError)rs r unicode_is_asciir'sX h $ $$$ $   t uus 0 >>)r)__doc__recompatrcompile_VALID_HEADER_NAME_RE_BYTE_VALID_HEADER_NAME_RE_STR_VALID_HEADER_VALUE_RE_BYTE_VALID_HEADER_VALUE_RE_STR_HEADER_VALIDATORS_STR_HEADER_VALIDATORS_BYTEbytesrHEADER_VALIDATORSrboolrrr r$s 'RZ(>??&BJ'<==(bj)>??'RZ(<==35OP57RS "   S5[ C c     s t      r