
    ^                     ,    S r SSKJrJrJr  SS jrS rg)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_strstrc                     [        U [        5      (       a  U nU$ [        (       a  U R                  U5      nU$ U R	                  U5      nU$ )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.
)
isinstancer   r   encodedecode)stringencodingouts      3platform/bq/third_party/requests/_internal_utils.pyto_native_stringr      sN    
 &+&& J 6--)C J --)CJ    c                 v    [        U [        5      (       d   e U R                  S5        g! [         a     gf = f)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
asciiTF)r   r   r   UnicodeEncodeError)u_strings    r   unicode_is_asciir      s=     h$$$$  s   + 
88N)r   )__doc__compatr   r   r   r   r    r   r   <module>r      s    - , r   