+
    VùCiÂ  ã                   óp   € R t ^ RIHtHt ^ RIHtHt ^RIHt ]P                  R	R l4       t
R tR tR tR# )
z½
oauthlib.parameters
~~~~~~~~~~~~~~~~~~~

This module contains methods related to `section 3.5`_ of the OAuth 1.0a spec.

.. _`section 3.5`: https://tools.ietf.org/html/rfc5849#section-3.5
)ÚurlparseÚ
urlunparse)Úextract_paramsÚ	urlencode)ÚutilsNc                óf  € T;'       g    / p. pV  FS  w  rE\         P                  ! V4      p\         P                  ! V4      pRP                  Wg4      pVP                  V4       KU  	  RP	                  V4      p	V'       d   RV,          V	,           p	RV	,          p
/ pVP                  V4       W«R&   V# )aÞ  **Prepare the Authorization header.**
Per `section 3.5.1`_ of the spec.

Protocol parameters can be transmitted using the HTTP "Authorization"
header field as defined by `RFC2617`_ with the auth-scheme name set to
"OAuth" (case insensitive).

For example::

    Authorization: OAuth realm="Example",
        oauth_consumer_key="0685bd9184jfhq22",
        oauth_token="ad180jjd733klru7",
        oauth_signature_method="HMAC-SHA1",
        oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D",
        oauth_timestamp="137131200",
        oauth_nonce="4572616e48616d6d65724c61686176",
        oauth_version="1.0"


.. _`section 3.5.1`: https://tools.ietf.org/html/rfc5849#section-3.5.1
.. _`RFC2617`: https://tools.ietf.org/html/rfc2617
z{}="{}"z, zrealm="%s", zOAuth %sÚAuthorization)r   ÚescapeÚformatÚappendÚjoinÚupdate)Úoauth_paramsÚheadersÚrealmÚ%authorization_header_parameters_partsÚoauth_parameter_nameÚvalueÚescaped_nameÚescaped_valueÚpartÚauthorization_header_parametersÚauthorization_headerÚfull_headerss   &&&         ÚD/usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/parameters.pyÚprepare_headersr      sÂ   € ð0 �mˆm˜€Gð -/Ð)Û'3Ñ#Ðô
 —|’|Ð$8Ó9ˆÜŸš UÓ+ˆð
 ×Ñ Ó<ˆà-×4Ñ4°TÖ:ñ (4ð& '+§i¡iØ-ó'/Ð#÷ à+9¸EÕ+AØ+Jõ,KÐ'ð &Ð(GÕGÐð €LØ×Ñ˜Ô Ø$8�Ñ!ØÐó    c                ód   € \        V4      pVP                  V 4       VP                  R R7       V# )a*  Append OAuth params to an existing set of parameters.

Both params and oauth_params is must be lists of 2-tuples.

Per `section 3.5.2`_ and `3.5.3`_ of the spec.

.. _`section 3.5.2`: https://tools.ietf.org/html/rfc5849#section-3.5.2
.. _`3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3

c                 ó2   € V ^ ,          P                  R4      # )é    Úoauth_)Ú
startswith)Úis   &r   Ú<lambda>Ú _append_params.<locals>.<lambda>i   s   € ˜a �dŸo™o¨hÔ7r   )Úkey)ÚlistÚextendÚsort)r   ÚparamsÚmergeds   && r   Ú_append_paramsr+   X   s/   € ô �&‹\€FØ
‡M�M�,Ôð
 ‡K�KÑ7€KÔ8Ø€Mr   c                ó   € \        W4      # )z‹Prepare the Form-Encoded Body.

Per `section 3.5.2`_ of the spec.

.. _`section 3.5.2`: https://tools.ietf.org/html/rfc5849#section-3.5.2

)r+   )r   Úbodys   &&r   Úprepare_form_encoded_bodyr.   m   s   € ô ˜,Ó-Ð-r   c                óŒ   € \        V4      w  r#rErg\        \        T \        V4      ;'       g    . 4      4      p\	        W#WEWg34      # )z‹Prepare the Request URI Query.

Per `section 3.5.3`_ of the spec.

.. _`section 3.5.3`: https://tools.ietf.org/html/rfc5849#section-3.5.3

)r   r   r+   r   r   )r   ÚuriÚschÚnetÚpathÚparÚqueryÚfras   &&      r   Úprepare_request_uri_queryr7   y   sH   € ô '/¨s£mÑ#€Cˆd˜ÜÜ�|¤^°EÓ%:×%@Ð%@¸bÓAóC€Eä�s ¨EÐ7Ó8Ð8r   )NN)Ú__doc__Úurllib.parser   r   Úoauthlib.commonr   r   Ú r   Úfilter_paramsr   r+   r.   r7   © r   r   Ú<module>r>      sA   ðñ÷ .ç 5å ð
 ×ÑóBó ðBòJò*	.ô9r   