/opt/support/venv/lib/python3.13/site-packages/urllib3/__pycache__
NameSizeModeActions
connection.cpython-313.pyc392910644editdlrm
connectionpool.cpython-313.pyc391000644editdlrm
exceptions.cpython-313.pyc174020644editdlrm
fields.cpython-313.pyc115870644editdlrm
filepost.cpython-313.pyc34760644editdlrm
poolmanager.cpython-313.pyc239020644editdlrm
response.cpython-313.pyc585540644editdlrm
_base_connection.cpython-313.pyc69470644editdlrm
_collections.cpython-313.pyc231230644editdlrm
_request_methods.cpython-313.pyc99410644editdlrm
_version.cpython-313.pyc7810644editdlrm
__init__.cpython-313.pyc71040644editdlrm
Edit: /opt/support/venv/lib/python3.13/site-packages/urllib3/__pycache__/fields.cpython-313.pyc (11587B)
iM*SSKJr SSKrSSKrSSKr\R \\4r \R \ \ \\ 4\ \\ \44r S S Sjjr S Sjr S SjrS SjrS Sjr"SS 5rg) ) annotationsNcXU(a"[R"U5S=(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 @/opt/support/venv/lib/python3.13/site-packages/urllib3/fields.pyguess_content_typer s'##H-a0;G; Ncl^SSKnURS[SS9 [T[5(aTR S5m[ U4SjS55(dUS TS 3nURS 5 U$[RRTS5mUS T3mT$![[4a 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. rNz'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-8c3,># UH oT;v M g7fN).0chvalues r .format_header_param_rfc2231..@s/YrU{Ysz"\ =""asciiz*=) warningswarnDeprecationWarning isinstancebytesdecodeanyencodeUnicodeEncodeErrorUnicodeDecodeErroremailutilsencode_rfc2231)namerrresults ` r format_header_param_rfc2231r+s( MM 1  % W% /Y/ / /6E7!$  MM' "M KK & &ug 6EfBug E L#$67   s$B B32B3c[U[5(aURS5nURSSSS.5nUSUS3$)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. rz%0Az%0Dz%22) "rr)rr r! translate)r)rs r format_multipart_header_paramr1OsI<% W% OOEu= >EV2eWA r cJSSKnURS[SS9 [X5$)t .. deprecated:: 2.0.0 Renamed to :func:`format_multipart_header_param`. Will be removed in urllib3 v2.1.0. rNz'format_header_param_html5' has been renamed to 'format_multipart_header_param'. The old name will be removed in urllib3 v2.1.0.r rrrrr1r)rrs r format_header_param_html5r6u2  MM %   ) 55r cJSSKnURS[SS9 [X5$)r3rNzz'format_header_param' has been renamed to 'format_multipart_header_param'. The old name will be removed in urllib3 v2.1.0.r rr4r5s r format_header_paramr9r7r c\rSrSrSrS S Sjjr\S SSjj5rSSjrSSjr SSjr S SS jjr S r g) RequestFielda A data container for request body parameters. :param name: The name of this request field. Must be unicode. :param data: The data/value body. :param filename: An optional filename of the request field. Must be unicode. :param headers: An optional dict-like object of headers to initially use for the field. .. versionchanged:: 2.0.0 The ``header_formatter`` parameter is deprecated and will be removed in urllib3 v2.1.0. NcXlX0lX l0UlU(a[ U5UlUb SSKnUR S[SS9 XPlg[Ulg)NrzUThe 'header_formatter' parameter is deprecated and will be removed in urllib3 v2.1.0.r r) _name _filenamedataheadersdictrrrheader_formatterr1)selfr)r@rrArCrs r __init__RequestField.__init__s] ! .0 =DL  '  MM5"   %5 !$AD !r c[U[5(a%[U5S:XaUupEnOUupE[U5nOSnSnUnU"XXCS9nUR US9 U$)aS A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters. Supports constructing :class:`~urllib3.fields.RequestField` from parameter of key/value strings AND key/filetuple. A filetuple is a (filename, data, MIME type) tuple where the MIME type is optional. For example:: 'foo': 'bar', 'fakefile': ('foofile.txt', 'contents of foofile'), 'realfile': ('barfile.txt', open('realfile').read()), 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'), 'nonamefile': 'contents of nonamefile field', Field names and filenames must be unicode. N)rrC) content_type)rtuplelenr make_multipart)cls fieldnamerrCrr@rI request_params r from_tuplesRequestField.from_tuplessn6 eU # #5zQ/4, !&1(; HLD h  $$,$?r c$URX5$)a; Override this method to change how each multipart header parameter is formatted. By default, this calls :func:`format_multipart_header_param`. :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``. :meta public: )rC)rDr)rs r _render_partRequestField._render_parts$$T11r c/n[U[5(aUR5nOUnUH*upEUcM URUR XE55 M, SR U5$)a Helper function to format and quote a single header. Useful for single headers that are composed of multiple items. E.g., 'Content-Disposition' fields. :param header_parts: A sequence of (k, v) tuples or a :class:`dict` of (k, v) to format as `k1="v1"; k2="v2"; ...`. ; )rrBitemsappendrSjoin)rD header_partspartsiterabler)rs r _render_partsRequestField._render_partssc& lD ) )#))+H#H#KD  T..t;<$yyr c/n/SQnUHInURRUS5(dM&URUSURU35 MK URR5H+upEXB;dM U(dMURUSU35 M- URS5 SR U5$)z- Renders the headers for this request field. )Content-Disposition Content-TypeContent-LocationFz: z )rAgetrXrWrY)rDlines sort_keyssort_key header_name header_values r render_headersRequestField.render_headers#sO !H||%00 zDLL,B+CDE"*.););)= %K+<LLK=<.!AB*>  V{{5!!r c U=(d SSRSURSUR4SUR445/5-nXRS'X RS'X0RS'g ) a Makes this request field into a multipart request field. This method overrides "Content-Disposition", "Content-Type" and "Content-Location" headers to the request parameter. :param content_disposition: The 'Content-Disposition' of the request body. Defaults to 'form-data' :param content_type: The 'Content-Type' of the request body. :param content_location: The 'Content-Location' of the request body. z form-datarVr)rr`rarbN)rYr]r>r?rA)rDcontent_dispositionrIcontent_locations r rLRequestField.make_multipart6sy( 3AkTYY""djj)J+GH F  /B *+'3 ^$+; '(r )r?r>r@rCrA)NNN) r)strr@_TYPE_FIELD_VALUEr str | NonerAztyping.Mapping[str, str] | NonerC5typing.Callable[[str, _TYPE_FIELD_VALUE], str] | Noner)rNrpr_TYPE_FIELD_VALUE_TUPLErCrsreturnr;r)rprrqrurp)rZz[dict[str, _TYPE_FIELD_VALUE | None] | typing.Sequence[tuple[str, _TYPE_FIELD_VALUE | None]]rurp)rurp)rmrrrIrrrnrrruNone) __name__ __module__ __qualname____firstlineno____doc__rE classmethodrPrSr]rirL__static_attributes__rr r r;r;s* $37RV BB B B 1 B P B8 SW **'*P *  **X2   D  >"*+/#''+ <'<!<% <  <rs" LLe, ,, # ! # # %&(*D  #&   -`#L6$6$|<|