kr.motd.maven.sphinx.dist.urllib3.util.retry$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
???? 1q 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
time importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
logging collections !
namedtuple # itertools % takewhile ' email ) re +
exceptions - ConnectTimeoutError /
MaxRetryError 1
ProtocolError 3 ReadTimeoutError 5
ResponseError 7
InvalidHeader 9 packages ; six = getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? @
A getLogger C org/python/core/PyObject E __getattr__ G @
F H __name__ J __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; L M
F N log P RequestHistory R org/python/core/PyString T fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString; V W
U X org/python/core/PyList Z method \ url ^ error ` status b redirect_location d ([Lorg/python/core/PyObject;)V f g
[ h m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; L j
F k object m Retry o Retry$1
__module__ r __doc__ t_ Retry configuration.
Each retry attempt will create a new Retry object with updated values, so
they can be safely reused.
Retries can be defined as a default for a pool::
retries = Retry(connect=5, read=2, redirect=5)
http = PoolManager(retries=retries)
response = http.request('GET', 'http://example.com/')
Or per-request (which overrides the default for the pool)::
response = http.request('GET', 'http://example.com/', retries=Retry(10))
Retries can be disabled by passing ``False``::
response = http.request('GET', 'http://example.com/', retries=False)
Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless
retries are disabled, in which case the causing exception will be raised.
:param int total:
Total number of retries to allow. Takes precedence over other counts.
Set to ``None`` to remove this constraint and fall back on other
counts. It's a good idea to set this to some sensibly-high value to
account for unexpected edge cases and avoid infinite retry loops.
Set to ``0`` to fail on the first retry.
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
:param int connect:
How many connection-related errors to retry on.
These are errors raised before the request is sent to the remote server,
which we assume has not triggered the server to process the request.
Set to ``0`` to fail on the first retry of this type.
:param int read:
How many times to retry on read errors.
These errors are raised after the request was sent to the server, so the
request may have side-effects.
Set to ``0`` to fail on the first retry of this type.
:param int redirect:
How many redirects to perform. Limit this to avoid infinite redirect
loops.
A redirect is a HTTP response with a status code 301, 302, 303, 307 or
308.
Set to ``0`` to fail on the first retry of this type.
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
:param int status:
How many times to retry on bad status codes.
These are retries made on responses, where status code matches
``status_forcelist``.
Set to ``0`` to fail on the first retry of this type.
:param iterable method_whitelist:
Set of uppercased HTTP method verbs that we should retry on.
By default, we only retry on methods which are considered to be
idempotent (multiple requests with the same parameters end with the
same state). See :attr:`Retry.DEFAULT_METHOD_WHITELIST`.
Set to a ``False`` value to retry on any verb.
:param iterable status_forcelist:
A set of integer HTTP status codes that we should force a retry on.
A retry is initiated if the request method is in ``method_whitelist``
and the response status code is in ``status_forcelist``.
By default, this is disabled with ``None``.
:param float backoff_factor:
A backoff factor to apply between attempts after the second try
(most errors are resolved immediately by a second try without a
delay). urllib3 will sleep for::
{backoff factor} * (2 ^ ({number of total retries} - 1))
seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep
for [0.0s, 0.2s, 0.4s, ...] between retries. It will never be longer
than :attr:`Retry.BACKOFF_MAX`.
By default, backoff is disabled (set to 0).
:param bool raise_on_redirect: Whether, if the number of redirects is
exhausted, to raise a MaxRetryError, or to return a response with a
response code in the 3xx range.
:param bool raise_on_status: Similar meaning to ``raise_on_redirect``:
whether we should raise an exception, or return a response,
if status falls in ``status_forcelist`` range and retries have
been exhausted.
:param tuple history: The history of the request encountered during
each call to :meth:`~Retry.increment`. The list is in the order
the requests occurred. Each list item is of class :class:`RequestHistory`.
:param bool respect_retry_after_header:
Whether to respect Retry-After header on status codes defined as
:attr:`Retry.RETRY_AFTER_STATUS_CODES` or not.
v frozenset x HEAD z GET | PUT ~ DELETE ? OPTIONS ? TRACE ? DEFAULT_METHOD_WHITELIST ? org/python/core/Py ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
? ? RETRY_AFTER_STATUS_CODES ? BACKOFF_MAX ? None ? True ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
__init__$2 getlocal (I)Lorg/python/core/PyObject; ? ?
? total ? __setattr__ ?
F ? connect ? read ? False ? getglobal ? @
? _is 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
F ? __nonzero__ ()Z ? ?
F ? (ILorg/python/core/PyObject;)V ?
? redirect ? set ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; L ?
F ? status_forcelist ? method_whitelist ? backoff_factor ? raise_on_redirect ? raise_on_status ? tuple ? history ? respect_retry_after_header ? f_lasti I ? ? ? ? ? ? ? urllib3/util/retry$py ? Lorg/python/core/PyCode; ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V f ?
? ? __init__ ? EmptyObjects [Lorg/python/core/PyObject; ? ? ? ? new$3 dict ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; L ?
F ? update ? type ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
F ? ? ? ? ? new ?
from_int$4 4 Backwards-compatibility for the old retries format. ? _isnot ? ?
F ? DEFAULT ?
isinstance ? bool debug !Converted retries value: %r -> %r ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; L
F ? ? ?
classmethod from_int get_backoff_time$5 J Formula for computing the current backoff
:rtype: float
len list f$6 ? ? P(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)V f
? reversed _le ?
F _sub" ?
F# _pow% ?
F& _mul( ?
F) min+ ? ?- get_backoff_time/ parse_retry_after$7 match2 ^\s*[0-9]+\s*$4 int6 utils8 parsedate: Invalid Retry-After header: %s< _mod> ?
F?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;AB
?C mktimeE _ltG ?
FH1 ? ?J parse_retry_afterL get_retry_after$8 * Get the value of Retry-After in seconds. O getheaderQ Retry-AfterSN ? ?U get_retry_afterW sleep_for_retry$9 sleepZY ? ?\ sleep_for_retry^ _sleep_backoff$10` ? ?a _sleep_backoffc sleep$11C Sleep between retry attempts.
This method will respect a server's ``Retry-After`` response header
and sleep the duration of the time requested. If that is not present, it
will use an exponential backoff. By default, the backoff factor is 0 and
this method will return immediately.
fe ? ?h _is_connection_error$12 { Errors when we're fairly sure that the server did not receive the
request, so it should be safe to retry.
kj ? ?m _is_connection_erroro _is_read_error$13 ? Errors that occur after the request has been started, so we should
assume that the server began processing it.
r org/python/core/PyTuplet
u hq ? ?w _is_read_errory _is_method_retryable$14 | Checks if a given HTTP method should be retried upon, depending if
it is included on the method whitelist.
| upper~ _notin? ?
F?{ ? ?? _is_method_retryable? is_retry$15x Is this method/status code retryable? (Based on whitelists and control
variables such as the number of total retries to allow, whether to
respect the Retry-After header, whether this header is present, and
whether the returned status code is on the list of status codes to
be retried upon on the presence of the aforementioned header)
? __not__ ()Lorg/python/core/PyObject;??
F? _in? ?
F?? ? ?? is_retry? is_exhausted$16 Are we out of retries? ? filter?? ? ?? is_exhausted? increment$17? Return a new Retry object with incremented retry counters.
:param response: A response object, or None, if the server did not
return a response.
:type response: :class:`~urllib3.response.HTTPResponse`
:param Exception error: An error encountered during the request, or
None if the response was received successfully.
:return: A new ``Retry`` object.
? reraise? _isub? ?
F? unknown? get_redirect_location? too many redirects?
GENERIC_ERROR? SPECIFIC_ERROR? format? status_code? T(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject; L?
F? _add? ?
F? $Incremented Retry for (url='%s'): %r?? ? ?? increment? __repr__$18 |{cls.__name__}(total={self.total}, connect={self.connect}, read={self.read}, redirect={self.redirect}, status={self.status})? cls? self?? ? ?? __repr__? getf_locals??
? q ? ?? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;??
?? java/util/Arrays? fill (([Ljava/lang/Object;Ljava/lang/Object;)V??
?? (Ljava/lang/String;)V org/python/core/PyFunctionTable? ()V f?
?? Lurllib3/util/retry$py;?? ?? ? newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;??
?? ? ?? kw? params? retries? default? new_retries? consecutive_errors_len?
backoff_value? x? ? retry_after? seconds? retry_date_tuple
retry_date response backoff slept err has_retry_after
retry_counts _pool _stacktrace status_count cause new_retry getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? f?
?
?" org/python/core/CodeLoader$ createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;&'
%( runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V*+
?, getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap0 )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;23
14
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?8 q
?: ?
?< ?
?> ?
?@
?B
?D1
?FN
?HY
?J`
?Le
?Nj
?Pq
?R{
?T?
?V?
?X?
?Z?
?\ org/python/core/PyRunnable^ Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; \/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/util/retry.py org/python/core/ThreadStateh [Ljava/lang/String;j Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?? _ ?? ? q ? ? ? ? ? ? ? ? ? 1 ? N ? Y ? ` ? e ? j ? q ? { ? ? ? ? ? ? ? ? ? l ? c+?
? N-S-+? N-2:+? :+? +? N+-? N+? +? N+ -? N+? "? N-$S-+? N-2:+$? :+? &? N-(S-+? N-2:+(? :+? *+? N+*-? N+? ,+? N+,-? N+ ? .? N-0S-2S-4S-6S-8S-:S-+? N-2:+0? :-2:+2? :-2:+4? :-2:+6? :-2:+8? :-2:+:? :+? <? N->S-+? N-2:+>? :+? + ? BD? I,+K? B? ON+Q-? N+? +$? B,S? Y? [Y? FY]? YSY_? YSYa? YSYc? YSYe? YS? i? lN+S-? N+? ? FN+n? B-__Sp-?ϸ?:+p? :-??+?? +p? B,? ?? ON+p? B?-? ?N+? Բ ְ m 6
? q l ? }+s+K? B? +uw? Y? + ?? w? YW+ ?? +y? B,? [Y? FY{? YSY}? YSY? YSY?? YSY?? YSY?? YS? i? ON+?-? N+ ?? +y? B,? [Y? FY?? ?SY?? ?SY?? ?S? i? ON+?-? N+ ?? x? ?N+?-? N+ ?? ? FN
? ?-__S+?? B-__S+?? B-__S+?? B-__S+?? B-__S+?? B-__S+?? B-__S? ?-__S+?? B-__S+?? B-_ _S+?? B-_
_S+?? B-__S? ?Y+? ?-? ?? ?N+?-? N+ ?? ? ?N? ?Y+? ?-? ?? ?N+?-? N+ ?? ? FN+?? B-__S+?? B-__S? ?Y+? ?-??? Y? ?N+
? B,-? ON-N+-? N+ ˶ ? ?N? ?Y+? ?-?.? Y? ?N+0-? N+ ٶ ? ?N? ?Y+? ?-?K? ?N+M-? N+ ? ? ?N? ?Y+? ?-?VP? Y? ?N+X-? N+ ? ? FN+?? B-__S? ?Y+? ?-?]? ?N+_-? N+ ?? ? ?N? ?Y+? ?-?b? ?N+d-? N+? ? FN+?? B-__S? ?Y+? ?-?ig? Y? ?N+[-? N+? ? ?N? ?Y+? ?-?nl? Y? ?N+p-? N+? ? ?N? ?Y+? ?-?xs? Y? ?N+z-? N+? ? ?N? ?Y+? ?-??}? Y? ?N+?-? N+&? ? FN+?? B-__S? ?Y+? ?-???? Y? ?N+?-? N+6? ? ?N? ?Y+? ?-???? Y? ?N+?-? N+?? ? FN+?? B-__S+?? B-__S+?? B-__S+?? B-__S+?? B-__S+?? B-__S? ?Y+? ?-???? Y? ?N+?-? N+?? ? ?N? ?Y+? ?-??? ?N+?-? N+?Ͱ m R ? ? ? ? ? ? ? ? ? ? ? ? &