kr.motd.maven.sphinx.dist.urllib3.fields$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; org/python/core/PyFrame setline (I)V
__future__ java/lang/String absolute_import
org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
setlocal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
email.utils importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
email mimetypes ! packages # six % org/python/core/PyObject ' application/octet-stream ) org/python/core/PyString + fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString; - .
, / org/python/core/PyFunction 1 f_globals Lorg/python/core/PyObject; 3 4 5 guess_content_type$1 ?
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`.
8 getlocal (I)Lorg/python/core/PyObject; : ;
< __nonzero__ ()Z > ?
( @ getglobal .(Ljava/lang/String;)Lorg/python/core/PyObject; B C
D
guess_type F __getattr__ H C
( I __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; K L
( M org/python/core/Py O
newInteger (I)Lorg/python/core/PyInteger; Q R
P S __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; U V
( W f_lasti I Y Z [ urllib3/fields$py ] Lorg/python/core/PyCode; 7 _ ^ ` j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V b c
2 d guess_content_type f EmptyObjects [Lorg/python/core/PyObject; h i P j format_header_param$2 to_cell (II)V m n
o?
Helper function to format and quote a single header parameter.
Particularly useful for header parameters which might contain
non-ASCII values, like file names. This follows RFC 2231, as
suggested by 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 a unicode string.
q any s f$3 __iter__ ()Lorg/python/core/PyObject; v w
( x (ILorg/python/core/PyObject;)V z
{ getderef } ;
~ _in ? V
( ? java/lang/Object ?
f_savedlocals [Ljava/lang/Object; ? ? ? getGeneratorInput ()Ljava/lang/Object; ? ?
? org/python/core/PyException ? java/lang/Throwable ? __iternext__ ? w
( ? None ? 4 P ? u _ ^ ?
getclosure ? ;
? ?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V b ?
2 ? "\
? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? __not__ ? w
( ? %s="%s" ? org/python/core/PyTuple ? ([Lorg/python/core/PyObject;)V b ?
? ? _mod ? V
( ? encode ? ascii ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
P ? UnicodeEncodeError ? UnicodeDecodeError ? match (Lorg/python/core/PyObject;)Z ? ?
? ? PY3 ?
isinstance ? text_type ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; K ?
( ? utf-8 ? setderef ? z
? utils ? encode_rfc2231 ? %s*=%s ? l _ ^ ? format_header_param ? object ? getname ? C
? RequestField ? RequestField$4
__module__ ? __name__ ? __doc__ ?K
A data container for request body parameters.
:param name:
The name of this request field.
:param data:
The data/value body.
:param filename:
An optional filename of the request field.
:param headers:
An optional dict-like object of headers to initially use for the field.
? ?
__init__$5 _name ? __setattr__ ?
( ? _filename ? data ? org/python/core/PyDictionary ?
? ? headers ? dict ? ? _ ^ ? __init__
from_tuples$6?
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.
tuple len _eq V
(
unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
P filename g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; K
( make_multipart content_type _ ^ classmethod from_tuples _render_part$7
Overridable helper function to format a single header parameter.
:param name:
The name of the parameter, a string expected to be ASCII only.
:param value:
The value of the parameter, provided as a unicode string.
_ ^" _render_part$ _render_parts$8O
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) typles or a :class:`dict` of (k, v) to format
as `k1="v1"; k2="v2"; ...`.
' org/python/core/PyList)
* ? items, 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; K.
(/ _isnot1 V
(2 append4 ; 6 join8&