All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.urllib3.util.retry$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1qf$0R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;org/python/core/PyFramesetline(I)V

__future__	java/lang/Stringabsolute_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	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
loggingcollections!
namedtuple#	itertools%	takewhile'email)re+
exceptions-ConnectTimeoutError/
MaxRetryError1
ProtocolError3ReadTimeoutError5
ResponseError7
InvalidHeader9packages;six=getname.(Ljava/lang/String;)Lorg/python/core/PyObject;?@
A	getLoggerCorg/python/core/PyObjectE__getattr__G@
FH__name__J__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;LM
FNlogPRequestHistoryRorg/python/core/PyStringTfromInterned.(Ljava/lang/String;)Lorg/python/core/PyString;VW
UXorg/python/core/PyListZmethod\url^error`statusbredirect_locationd([Lorg/python/core/PyObject;)Vfg
[hm(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;Lj
FkobjectmRetryoRetry$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	frozensetxHEADzGET|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_globalsLorg/python/core/PyObject;??	?
__init__$2getlocal(I)Lorg/python/core/PyObject;??
?total?__setattr__?
F?connect?read?False?	getglobal?@
?_is6(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_lastiI??	???	??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__?EmptyObjectsorg/python/core/PyObject;??	??new$3dict?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$44 Backwards-compatibility for the old retries format.?_isnot??
F?DEFAULT?
isinstance?booldebug!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_intget_backoff_time$5J Formula for computing the current backoff

        :rtype: float
        lenlistf$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$7match2^\s*[0-9]+\s*$4int6utils8	parsedate:Invalid Retry-After header: %s<_mod>?
F?
makeException9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;AB
?CmktimeE_ltG?
FH1?	?Jparse_retry_afterLget_retry_after$8* Get the value of Retry-After in seconds. O	getheaderQRetry-AfterSN?	?Uget_retry_afterWsleep_for_retry$9sleepZY?	?\sleep_for_retry^_sleep_backoff$10`?	?a_sleep_backoffcsleep$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.
        fe?	?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.
        kj?	?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.
        rorg/python/core/PyTuplet
uhq?	?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?	??	makeClassa(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;)Vorg/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_dateresponsebackoffslept	errhas_retry_after
retry_counts_pool_stacktracestatus_countcause	new_retrygetMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V?f?
? 
?"org/python/core/CodeLoader$createSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;&'
%(runMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V*+
?,getCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrap0)getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;23
14
call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?8q
?:?
?<?
?>?
?@
?B
?D1
?FN
?HY
?J`
?Le
?Nj
?Pq
?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.pyorg/python/core/ThreadStateh[Ljava/lang/String;jCodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!??_???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+?Բְm6
	?ql?}+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+?ͰmR????????????&6???lv?+??+??N+???-??N+??+??N+???-??N+??+??N+???-??N+??+??N+??c-??N+??+??N+???-_??NY???W+??N+???-_??N???1+????N+-??N+??+???N+	-??N?+??+??N+???-??N+??+??Y???W+???,??N+???-??N+??+??N+???-??N+??+??N+???-??N+??+	??N+???-??N+??+
??N+???-??N+??+??Y???W+̶?,??N+???-??N+??+??N+???-??N+?Բְm>???????????????nK??iF??i
?iF??iF?l?p+??+??,?FN+????I-__S+????I-__S+????I-__S+????I-__S+??c?I-__S+??ĶI-__S+??¶I-__S+??ƶI-__S+??ȶI-__S+??ʶI-_	_S+??ζI-_
_S?:?S?S?S?ScS?S?S?S?S	?S
?S-??NN+-??N+??+???I,+???OW+??+??,+???O??N?:+??-^X??NN+??-?m????l?a+????YW+??+??N+???-_??N???H+??+??+??N+???-_??N???+???
+????IN+-??N?+ö+??,+??+p???l???+Ķ+??N+??-?+ƶ+??,+???OY???
W+???:+??:+Ƕ+??,?F:+??__S+??__S?:?S??::+??:+ȶ+Q???I,?Y+??+???	W+ɶ+??N+??-?m*
??????????nX\?if?iFr?i??i??iFlC?+϶?YW+Ѷ+??,+??,+(??,+Ѷ??N??Y-+??_??+??,+??ζI?O?l?O?ON+-??N+Ӷ+??N??-_?!N???+Զ??N+??-?+ֶ+??ƶI??+?????$?'?*:+??:+׶+,??,+????I+???lN+??-?m???????n??il?'+Ѷ+??e?IN+???-_??NN+??-?m?1l?N+۶+,??3?I,5?Y+???l???&+ܶ+7??,+???ON+-??N??+޶+*??9?I;?I,+???ON+-??N+߶+??N+???-_??N???&+?+:??,=?Y+???@?O?D?+?+??F?I,+???ON+-??N+?+??+???I,???$N+-??N+?+??N??-_?IN???+???N+-??N?+?+??N+??-?m*
??????????nAK?i??i?i:?iNl??+?P?YW+?+??R?I,T?Y?ON+-??N+?+??N+???-_??N???+?+???N+??-?+?+??M?I,+???ON+??-?m?????nh?iYl?}+??+??X?I,+???ON+-??N+??+?????5+??+??[?I,+???OW+??+???N+??-?+??+???N+??-?m?????nh?i`l?s+??+??0?I,??N+-??N+??+??N??-_?!N???+??+?Բְ+??+??[?I,+???OW+?Բְm????nM?iel??+?g?YW+
?+?????L+?+??_?I,+???ON+-??N+?+?????+
?+?Բְ?+?+??d?I,??W+?Բְm

n!f?ii?ijlO3+?l?YW+?+??,+??+0???lN+??-?m
qlf
J+?s?YW+?+??,+???uY?FY+6??SY+4??S?v?lN+??-?m
{l?x+ ?}?YW+!?+??ĶIY???%W+???I,??N+??ĶI-_??N???+"?+???N+??-?+$?+???N+??-?m !"$n#H?iFc?i?le?+,???YW+-?+????I,+???O?????+.?+???N+??-?+0?+??¶IY???W+??:+??¶I_??:???+1?+???N+??-?+3?+????IY???=W+??жIY???+W+??Y???W+??:+????I_??:N+??-?m,-.013nDG?iz?iF??i??iF?l7?+7???YW+8??uY?FY+????ISY+????ISY+????ISY+????ISY+??c?IS?vN+-??N+9?+??,+???,+???+???l?ON+-??N+:?+???????+;?+???N+??-?+=?+,??,+???O:??_?I:N+??-?m789:;=n??i?l??+J???YW+K?+????IN+???-_??NY???	W+?????8+M?+>????I,+??,+???O+??+???	?D?+O?+????IN+-??N+P?+??N+???-_??N???%+Q?+??N??-_??N+-???+S?+????IN+-??N+T?+????IN+	-??N+U?+????IN+
-??N+V?+??c?IN+-??N+W???YN+-??N+X?+???N+
-??N+Y?+???N+-??N+[?+??Y???W+??p?I,+???O????+]?+??N+???-_??N???8+^?+>????I,+??,+???O+??+???	?D?+_?+??N+???-_??N???%+`?+??N??-_??N+-?????+b?+??Y???W+??z?I,+???O????+d?+	??N+???-_??NY???W+????I,+???O?????8+e?+>????I,+??,+???O+??+???	?D?+f?+	??N+???-_??N???%+g?+	??N??-_??N+	-?????+i?+??Y???W+????I,??????+k?+
??N+???-_??N???%+l?+
??N??-_??N+
-???+m???YN+-??N+n?+????I,??N+-??N+o?+??c?IN+
-??N??+t?+8????IN+-??N+u?+??Y???W+??c?I????+v?+??N+???-_??N???%+w?+??N??-_??N+-???+x?+8????I??I,?FN+??c?I-__S?:?S-??NN+-??N+z?+??c?IN+
-??N?+|?+??ζI?uY?FY+S??,?FN+??-__S+??-__S+??-__S+
??-__S+??-__S-??S?v??N+-??N+~?+????I,?FN+??-__S+??-__S+	??-__S+
??-__S+??-__S+??-__S?:?S?S?S?ScS?S-??NN+-??N+??+????I,??????+??+2??,+??+??+??Y???W+8??,+???O?	?D?+??+Q???I,??Y+??+???	W+??+??N+??-?m?)JKMOPQSTUVWXY[]^_`bdefgiklmnotuvwxz|~????nu:?iFu?i??iF??iF?iK?iFN?iv?iF??iF??i4?iF7?iZ?iF??iF??i3?iF|?iF??iF@?ikFiFFFG?ik?ls[+??¸Y??I,?FN+??,+???O-__S+??-__S?:?S?S-??NN+??-?m?f?l#
*??*???M,+???????M,+p?????

?M,?S,?S,?S,?S,?S,cS,?S,?S,?S,	?S,
?S,?S,?S,+????????M,?S,?S,?S,+????????M,?S,?S,?S,?S,?S,+??????M,?S,?S,?S,+0?????.?M,?S,+???????M,?S,?S,S,S,S,+M?????K?M,?S,S,?S,+X?????V?M,?S,S,?S,+_???	??]?M,?S,S,+d???
??b?M,?S,S,
S,+[????i?M,?S,S,+p????n?M,?S,S,+z??
??x?M,?S,]S,+???????M,?S,]S,?S,S,+?&??????M,?S,S,+?6??????M,?S,]S,_S,S,aS,S,S,?S,?S,	?S,
?S,S,S,
cS,eS,?S,S,+????????M,?S,+??????ȱl??	l!??Y?!?#?)*?-?	./lظ5?67l??*,-??\`dhlptx|???????????9??;??=?????A??C??E??G??I??K??M??O??Q??S??U??W??Y??[??]??n?`?i?id?i?ih?i?il?i?ip?i?it?i?ix?i?i|?i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?i??i?iogp`aIbcaJdfasg




© 2015 - 2024 Weber Informatics LLC | Privacy Policy