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

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

There is a newer version: 2.10.0
Show newest version
????1?f$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
socket_GLOBAL_DEFAULT_TIMEOUTtime	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; 
!
exceptions#TimeoutStateError%object'getname.(Ljava/lang/String;)Lorg/python/core/PyObject;)*
+org/python/core/PyObject-__call__9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;/0
.1_Default3getattr5	monotonic7org/python/core/PyString9fromInterned.(Ljava/lang/String;)Lorg/python/core/PyString;;<
:=__getattr__?*
.@?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;/B
.Ccurrent_timeETimeoutG	Timeout$1
__module__J__name__L__doc__N? Timeout configuration.

    Timeouts can be defined as a default for a pool::

        timeout = Timeout(connect=2.0, read=7.0)
        http = PoolManager(timeout=timeout)
        response = http.request('GET', 'http://example.com/')

    Or per-request (which overrides the default for the pool)::

        response = http.request('GET', 'http://example.com/', timeout=Timeout(10))

    Timeouts can be disabled by setting all the parameters to ``None``::

        no_timeout = Timeout(connect=None, read=None)
        response = http.request('GET', 'http://example.com/, timeout=no_timeout)


    :param total:
        This combines the connect and read timeouts into one; the read timeout
        will be set to the time leftover from the connect attempt. In the
        event that both a connect timeout and a total are specified, or a read
        timeout and a total are specified, the shorter timeout will be applied.

        Defaults to None.

    :type total: integer, float, or None

    :param connect:
        The maximum amount of time to wait for a connection attempt to a server
        to succeed. Omitting the parameter will default the connect timeout to
        the system default, probably `the global default timeout in socket.py
        `_.
        None will set an infinite timeout for connection attempts.

    :type connect: integer, float, or None

    :param read:
        The maximum amount of time to wait between consecutive
        read operations for a response from the server. Omitting
        the parameter will default the read timeout to the system
        default, probably `the global default timeout in socket.py
        `_.
        None will set an infinite timeout.

    :type read: integer, float, or None

    .. note::

        Many factors can affect the total amount of time for urllib3 to return
        an HTTP response.

        For example, Python's DNS resolver does not obey the timeout specified
        on the socket. Other factors that can affect total request time include
        high CPU load, high swap, the program running at a low priority level,
        or other behaviors.

        In addition, the read and total timeouts only measure the time between
        read operations on the socket connecting the client and the server,
        not the total amount of time for the request to return a complete
        response. For most requests, the timeout is raised because the server
        has not sent the first byte in the specified time. This is not always
        the case; if a server streams one byte every fifteen seconds, a timeout
        of 20 seconds will not trigger, even though the request will take
        several minutes to complete.

        If your goal is to cut off any request after a set amount of wall clock
        time, consider having a second "watcher" thread to cut off a slow
        request.
    PDEFAULT_TIMEOUTRNoneTorg/python/core/PyFunctionV	f_globalsLorg/python/core/PyObject;XY	Z
__init__$2getlocal(I)Lorg/python/core/PyObject;]^
__validate_timeoutaconnectcm(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;/e
.f_connecth__setattr__j
.kreadm_readototalq	getglobals*
t_start_connectvf_lastiIxy	zorg/python/core/Py|TY	}~urllib3/util/timeout$py?Lorg/python/core/PyCode;\?	??j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V??
W?__init__?EmptyObjectsorg/python/core/PyObject;??	}?	__str__$3!%s(connect=%r, read=%r, total=%r)?org/python/core/PyTuple?type?S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;/?
.?([Lorg/python/core/PyObject;)V??
??_mod6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
.???	??__str__?_validate_timeout$4? Check that a timeout attribute is valid.

        :param value: The timeout value to validate
        :param name: The name of the timeout attribute to validate. This is
            used to specify in error messages.
        :return: The validated and casted version of the given value.
        :raises ValueError: If it is a numeric value less than or equal to
            zero, or the type is not an integer, float, or None.
        ?_is??
.?__nonzero__()Z??
.?
isinstance?bool?
ValueError?DTimeout cannot be a boolean value. It must be an int, float or None.?
makeException9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;??
}?float?setExceptionM(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;??
}?	TypeError?org/python/core/PyException?match(Lorg/python/core/PyObject;)Z??
??>Timeout value %s was %s, but it must be an int, float or None.?java/lang/Throwable?
newInteger(I)Lorg/python/core/PyInteger;??
}?_le??
.?dAttempted to set %s timeout to %s, but the timeout cannot be set to a value less than or equal to 0.???	??classmethod?from_float$5? Create a new Timeout from a legacy timeout value.

        The timeout value used by httplib.py sets the same timeout on the
        connect(), and recv() socket requests. This creates a :class:`Timeout`
        object that sets the individual timeouts to the ``timeout`` value
        passed to this function.

        :param timeout: The legacy timeout value.
        :type timeout: integer, float, sentinel default object, or None
        :return: Timeout object
        :rtype: :class:`Timeout`
        ?g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;/?
.???	??
from_float?clone$6 Create a copy of the timeout object

        Timeout properties are stored per-pool but each request needs a fresh
        Timeout object to ensure each one has its own start/stop configured.

        :return: a copy of the timeout object
        :rtype: :class:`Timeout`
        ???	??clone?start_connect$7? Start the timeout clock, used during a connect() attempt

        :raises urllib3.exceptions.TimeoutStateError: if you attempt
            to start a timer that has been started already.
        ?_isnot??
.?'Timeout timer has already been started.???	??
start_connect?get_connect_duration$8 Gets the time elapsed since the call to :meth:`start_connect`.

        :return: Elapsed time.
        :rtype: float
        :raises urllib3.exceptions.TimeoutStateError: if you attempt
            to get duration for a timer that hasn't been started.
        ?:Can't get connect duration for timer that has not started.?_sub??
.???	??get_connect_durationconnect_timeout$9" Get the value to use when setting a connection timeout.

        This will be a positive float or integer, the value None
        (never timeout), or the default system timeout.

        :return: Connect timeout.
        :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None
        min?	?property	connect_timeoutread_timeout$10? Get the value for the read timeout.

        This assumes some time has elapsed in the connection timeout and
        computes the read timeout appropriately.

        If self.total is set, the read timeout is dependent on the amount of
        time taken by the connect timeout. If the connection time has not been
        established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be
        raised.

        :return: Value to use for the read timeout.
        :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None
        :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect`
            has not yet been called on this object.
        max
?	?read_timeoutgetf_locals()Lorg/python/core/PyObject;
I?	?	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?)
(*selfLurllib3/util/timeout$py;,-	?.0newCode?(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;23
}4?	?6,cls9value;name=timeout?getMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V??&
?FAB
?Horg/python/core/CodeLoaderJcreateSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;LM
KNrunMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)VPQ
}RgetCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrapV)getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;XY
WZ
call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?^I
?`\
?b?
?d?
?f?
?h?
?j?
?l?
?n
?p

?rorg/python/core/PyRunnablet Lorg/python/compiler/APIVersion;%Lorg/python/compiler/MTime;`9??Lorg/python/compiler/Filename;^/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/util/timeout.pyorg/python/core/ThreadState}CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!?(u,-?I?\??????????????
?C+?
?N-S-+?N-2:+?:+??N-S-+?N-2:+?:+?+?"N+-?N+?$?N-&S-+?N-2:+&?:+?+(?,,?2N+4-?N+?+6?,,+?,8?>+?,?A?DN+F-?N+??.N+(?,-__SH-??:+H?:-?%+?{???IE+K+M?,?+OQ?>?+X?Q?>W+[?+?,N+S-?N+]??.N+U?,-__S+4?,-__S+4?,-__S?WY+?[-????N+?-?N+c???N?WY+?[-????N+?-?N+g???N?WY+?[-????>??N+ض,,-??N-N+b-?N+????N?WY+?[-??۸>??N+ض,,-??N-N+?-?N+????N?WY+?[-???>??N+?-?N+????N?WY+?[-???>??N+?-?N+????N?WY+?[-????>??N+-?N+ö??N?WY+?[-??>??N+
?,,-??N-N+-?N+ն??N?WY+?[-??>??N+
?,,-??N-N+-?N+???.X[]cg??????\??+^?+?`b?A,+?`d?>?gN+?`i-?lN+_?+?`b?A,+?`n?>?gN+?`p-?lN+`?+?`b?A,+?`r?>?gN+?`r-?lN+a?+U?uN+?`w-?lN+?{???^_`a?w
_+d???>??Y?.Y+??u,+?`??M?ASY+?`i?ASY+?`p?ASY+?`r?AS????N+?{-??d?R
+q???>W+r?+?`N+4?u-_??N???+s?+?`S?AN+?{-?+u?+?`:+U?u_??:Y???W+?`:+?`S?A_??:???+v?+?`N+?{-?+x?+??u,+?`+??u?g???+y?+??u,??>?????+|?+??u,+?`??W?k+??:??Y?.Y+??uSY+??uS???Ǚ=+~?+??u,ɸ>??Y?.Y+?`SY+?`S???????????+??+?`:??_??:???;+??+??u,Ը>??Y?.Y+?`SY+?`S??????????U+??:+??u?Ǚ>+??+??u,ɸ>??Y?.Y+?`SY+?`S???????????+??+?`N+?{-?????U????6
qrsuvxy|~??????
C?~??~.??~??~??~?O?R?~?U?~??~??~.????~??~?rV+??۸>W+??+H?u,?.N+?`-__S+?`-__S?:nSdS-??NN+?{-??
????u+???>W+??+H?u,?.N+?`i?A-__S+?`p?A-__S+?`r?A-__S?:dSnSrS-??NN+?{-??
?????+???>W+??+?`w?AN+U?u-_??N???+??+&?u,?>?????+??+F?u,?2N+?`w-?lN+??+?`w?AN+?{-????????L?~??r+????>W+??+?`w?AN+U?u-_??N???+??+&?u,??>?????+??+F?u,?2+?`w?A??N+?{-???????L?~K?+̶?>W+Ͷ+?`r?AN+U?u-_??N???+ζ+?`i?AN+?{-?+ж+?`i?A:+U?u_??:Y???#W+?`i?A:+?`S?A_??:???+Ѷ+?`r?AN+?{-?+Ӷ+?u,+?`i?A+?`r?A?gN+?{-?????????7L?~??~.??~
^?+??>W+?+?`r?AN+U?u-_??NY???dW+?`r?AN+?`S?A-_??NY???@W+?`p?AN+U?u-_??NY??? W+?`p?AN+?`S?A-_??N????+?+?`w?AN+U?u-_??N???+?+?`p?AN+?{-?+??+?u,??+?u,+?`r?A+?`?A,?2??+?`p?A?g?gN+?{-?+?+?`r?A:+U?u_??:Y???#W+?`r?A:+?`S?A_??:???=+?+?u,??+?`r?A+?`?A,?2???gN+?{-?+?+?`p?AN+?{-??"?????????Z??~.??~(?~q?~.??~?&?
?*?+*?/?M,+1?/?5?7?M,+H?/?5??M,8S,rS,dS,nS,+?]?/?5???M,8S,+?c?/?5???M,:S,S,+bg?/?5???M,:S,@S,+???/?5???M,8S,+???/?5???M,8S,+???/?5???M,8S,+??/?5???M,8S,+??/	?5??M,8S,+??/
?5??AB?7?	CD!??YE?G?I?O*?S?	TU??[?\]?n*,-?h
<@DHLPTX\`d?_??a??c??e??g??i??k??m??o??q??s???.@?~?~D?~?~H?~?~L?~?~P?~?~T?~?~X?~?~\?~?~`?~?~d?~?~h?~?~l?~?~?|?v;Iwx;Jy{;s|




© 2015 - 2024 Weber Informatics LLC | Privacy Policy