/usr/lib/rads/venv/lib/python3.13/site-packages/urllib3/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/urllib3/__pycache__/fields.cpython-313.pyc (11588B)
jM* S SK Jr S SKrS SKrS SKr\R \\4 r \R \ \
\\ 4 \
\\ \4 4 r S
SS jjrSS jr
SS jrSS jrSS jr " S S 5 rg)
)annotationsNc X U ( a" [ R " U 5 S =( d U$ U$ )z
Guess the "Content-Type" of a file.
:param filename:
The filename to guess the "Content-Type" of using :mod:`mimetypes`.
:param default:
If no "Content-Type" can be guessed, default to `default`.
r ) mimetypes
guess_type)filenamedefaults A/usr/lib/rads/venv/lib/python3.13/site-packages/urllib3/fields.pyguess_content_typer
s' ##H-a0;G;N c l ^ SSK nUR S[ SS9 [ T[ 5 ( a TR S5 m[
U4S jS 5 5 ( d U S T S
3n UR S5 U$ [ R R TS5 mU ST 3mT$ ! [ [ 4 a N;f = f)
ax
Helper function to format and quote a single header parameter using the
strategy defined in RFC 2231.
Particularly useful for header parameters which might contain
non-ASCII values, like file names. This follows
`RFC 2388 Section 4.4
`_.
:param name:
The name of the parameter, a string expected to be ASCII only.
:param value:
The value of the parameter, provided as ``bytes`` or `str``.
:returns:
An RFC-2231-formatted unicode string.
.. deprecated:: 2.0.0
Will be removed in urllib3 v2.1.0. This is not valid for
``multipart/form-data`` header parameters.
r Nz'format_header_param_rfc2231' is deprecated and will be removed in urllib3 v2.1.0. This is not valid for multipart/form-data header parameters.
stacklevelutf-8c 3 , ># U H oT; v M g 7fN ).0chvalues r .format_header_param_rfc2231..@ s /YrU{Ys z"\
=""asciiz*=)
warningswarnDeprecationWarning
isinstancebytesdecodeanyencodeUnicodeEncodeErrorUnicodeDecodeErroremailutilsencode_rfc2231)namer r results ` r format_header_param_rfc2231r+ s ( MM 1 %W%/Y///6E7!$ MM'" MKK&&ug6EfBugEL #$67 s $B B32B3c [ U[ 5 ( a UR S5 nUR SSSS.5 nU SU S3$ )a
Format and quote a single multipart header parameter.
This follows the `WHATWG HTML Standard`_ as of 2021/06/10, matching
the behavior of current browser and curl versions. Values are
assumed to be UTF-8. The ``\n``, ``\r``, and ``"`` characters are
percent encoded.
.. _WHATWG HTML Standard:
https://html.spec.whatwg.org/multipage/
form-control-infrastructure.html#multipart-form-data
:param name:
The name of the parameter, an ASCII-only ``str``.
:param value:
The value of the parameter, a ``str`` or UTF-8 encoded
``bytes``.
:returns:
A string ``name="value"`` with the escaped value.
.. versionchanged:: 2.0.0
Matches the WHATWG HTML Standard as of 2021/06/10. Control
characters are no longer percent encoded.
.. versionchanged:: 2.0.0
Renamed from ``format_header_param_html5`` and
``format_header_param``. The old names will be removed in
urllib3 v2.1.0.
r z%0Az%0Dz%22)
" r r )r r r! translate)r) r s r format_multipart_header_paramr1 O sI <