Current Path: > > opt > alt > python35 > lib64 > python3.5 > asyncio > > __pycache__ >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-35.opt-1.pyc | File | 867 bytes | May 31 2024 13:51:51. | |
__init__.cpython-35.opt-2.pyc | File | 801 bytes | May 31 2024 13:51:29. | |
__init__.cpython-35.pyc | File | 867 bytes | May 31 2024 13:51:56. | |
base_events.cpython-35.opt-1.pyc | File | 41379 bytes | May 31 2024 13:51:51. | |
base_events.cpython-35.opt-2.pyc | File | 33778 bytes | May 31 2024 13:51:29. | |
base_events.cpython-35.pyc | File | 41659 bytes | May 31 2024 13:51:56. | |
base_subprocess.cpython-35.opt-1.pyc | File | 9933 bytes | May 31 2024 13:51:51. | |
base_subprocess.cpython-35.opt-2.pyc | File | 9823 bytes | May 31 2024 13:51:29. | |
base_subprocess.cpython-35.pyc | File | 10058 bytes | May 31 2024 13:51:56. | |
compat.cpython-35.opt-1.pyc | File | 794 bytes | May 31 2024 13:51:51. | |
compat.cpython-35.opt-2.pyc | File | 665 bytes | May 31 2024 13:51:29. | |
compat.cpython-35.pyc | File | 794 bytes | May 31 2024 13:51:56. | |
constants.cpython-35.opt-1.pyc | File | 242 bytes | May 31 2024 13:51:51. | |
constants.cpython-35.opt-2.pyc | File | 205 bytes | May 31 2024 13:51:29. | |
constants.cpython-35.pyc | File | 242 bytes | May 31 2024 13:51:56. | |
coroutines.cpython-35.opt-1.pyc | File | 8984 bytes | May 31 2024 13:51:51. | |
coroutines.cpython-35.opt-2.pyc | File | 8744 bytes | May 31 2024 13:51:29. | |
coroutines.cpython-35.pyc | File | 9117 bytes | May 31 2024 13:51:56. | |
events.cpython-35.opt-1.pyc | File | 25946 bytes | May 31 2024 13:51:51. | |
events.cpython-35.opt-2.pyc | File | 18459 bytes | May 31 2024 13:51:29. | |
events.cpython-35.pyc | File | 26082 bytes | May 31 2024 13:51:56. | |
futures.cpython-35.opt-1.pyc | File | 15873 bytes | May 31 2024 13:51:51. | |
futures.cpython-35.opt-2.pyc | File | 9746 bytes | May 31 2024 13:51:29. | |
futures.cpython-35.pyc | File | 16157 bytes | May 31 2024 13:51:56. | |
locks.cpython-35.opt-1.pyc | File | 16087 bytes | May 31 2024 13:51:51. | |
locks.cpython-35.opt-2.pyc | File | 9524 bytes | May 31 2024 13:51:29. | |
locks.cpython-35.pyc | File | 16087 bytes | May 31 2024 13:51:56. | |
log.cpython-35.opt-1.pyc | File | 244 bytes | May 31 2024 13:51:51. | |
log.cpython-35.opt-2.pyc | File | 195 bytes | May 31 2024 13:51:29. | |
log.cpython-35.pyc | File | 244 bytes | May 31 2024 13:51:56. | |
proactor_events.cpython-35.opt-1.pyc | File | 17793 bytes | May 31 2024 13:51:51. | |
proactor_events.cpython-35.opt-2.pyc | File | 17373 bytes | May 31 2024 13:51:29. | |
proactor_events.cpython-35.pyc | File | 18039 bytes | May 31 2024 13:51:56. | |
protocols.cpython-35.opt-1.pyc | File | 6091 bytes | May 31 2024 13:51:51. | |
protocols.cpython-35.opt-2.pyc | File | 2316 bytes | May 31 2024 13:51:29. | |
protocols.cpython-35.pyc | File | 6091 bytes | May 31 2024 13:51:56. | |
queues.cpython-35.opt-1.pyc | File | 8833 bytes | May 31 2024 13:51:51. | |
queues.cpython-35.opt-2.pyc | File | 5950 bytes | May 31 2024 13:51:29. | |
queues.cpython-35.pyc | File | 8833 bytes | May 31 2024 13:51:56. | |
selector_events.cpython-35.opt-1.pyc | File | 32576 bytes | May 31 2024 13:51:51. | |
selector_events.cpython-35.opt-2.pyc | File | 30974 bytes | May 31 2024 13:51:29. | |
selector_events.cpython-35.pyc | File | 32641 bytes | May 31 2024 13:51:56. | |
sslproto.cpython-35.opt-1.pyc | File | 21436 bytes | May 31 2024 13:51:51. | |
sslproto.cpython-35.opt-2.pyc | File | 14594 bytes | May 31 2024 13:51:29. | |
sslproto.cpython-35.pyc | File | 21687 bytes | May 31 2024 13:51:56. | |
streams.cpython-35.opt-1.pyc | File | 20565 bytes | May 31 2024 13:51:51. | |
streams.cpython-35.opt-2.pyc | File | 14267 bytes | May 31 2024 13:51:29. | |
streams.cpython-35.pyc | File | 20897 bytes | May 31 2024 13:51:56. | |
subprocess.cpython-35.opt-1.pyc | File | 7480 bytes | May 31 2024 13:51:51. | |
subprocess.cpython-35.opt-2.pyc | File | 7303 bytes | May 31 2024 13:51:29. | |
subprocess.cpython-35.pyc | File | 7516 bytes | May 31 2024 13:51:56. | |
tasks.cpython-35.opt-1.pyc | File | 21338 bytes | May 31 2024 13:51:51. | |
tasks.cpython-35.opt-2.pyc | File | 14419 bytes | May 31 2024 13:51:29. | |
tasks.cpython-35.pyc | File | 21542 bytes | May 31 2024 13:51:56. | |
test_utils.cpython-35.opt-1.pyc | File | 17736 bytes | May 31 2024 13:51:51. | |
test_utils.cpython-35.opt-2.pyc | File | 16424 bytes | May 31 2024 13:51:29. | |
test_utils.cpython-35.pyc | File | 18143 bytes | May 31 2024 13:51:56. | |
transports.cpython-35.opt-1.pyc | File | 12437 bytes | May 31 2024 13:51:51. | |
transports.cpython-35.opt-2.pyc | File | 6798 bytes | May 31 2024 13:51:29. | |
transports.cpython-35.pyc | File | 12473 bytes | May 31 2024 13:51:56. | |
unix_events.cpython-35.opt-1.pyc | File | 32287 bytes | May 31 2024 13:51:51. | |
unix_events.cpython-35.opt-2.pyc | File | 28568 bytes | May 31 2024 13:51:29. | |
unix_events.cpython-35.pyc | File | 32701 bytes | May 31 2024 13:51:56. | |
windows_events.cpython-35.opt-1.pyc | File | 23154 bytes | May 31 2024 13:51:51. | |
windows_events.cpython-35.opt-2.pyc | File | 22018 bytes | May 31 2024 13:51:29. | |
windows_events.cpython-35.pyc | File | 23154 bytes | May 31 2024 13:51:56. | |
windows_utils.cpython-35.opt-1.pyc | File | 5793 bytes | May 31 2024 13:51:51. | |
windows_utils.cpython-35.opt-2.pyc | File | 5194 bytes | May 31 2024 13:51:29. | |
windows_utils.cpython-35.pyc | File | 5895 bytes | May 31 2024 13:51:56. |
��Yf�D � @ sN d Z d d d d d d g Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d Z d Z d Z e j j j Z e j j Z e j j Z e j d Z Gd d � d e � Z Gd d � d � Z d d � Z Gd d � d � Z d d � Z d d � Z d d � Z d d � Z d d d d � Z d S)z.A Future class similar to the one in PEP 3148.�CancelledError�TimeoutError�InvalidStateError�Future�wrap_future�isfuture� N� )�compat)�eventsZPENDINGZ CANCELLEDZFINISHEDc @ s e Z d Z d Z d S)r z+The operation is not allowed in this state.N)�__name__� __module__�__qualname__�__doc__� r r �4/opt/alt/python35/lib64/python3.5/asyncio/futures.pyr s c @ sL e Z d Z d Z d Z d d � Z d d � Z d d � Z d d � Z d S)�_TracebackLoggera Helper to log a traceback upon destruction if not cleared. This solves a nasty problem with Futures and Tasks that have an exception set: if nobody asks for the exception, the exception is never logged. This violates the Zen of Python: 'Errors should never pass silently. Unless explicitly silenced.' However, we don't want to log the exception as soon as set_exception() is called: if the calling code is written properly, it will get the exception and handle it properly. But we *do* want to log it if result() or exception() was never called -- otherwise developers waste a lot of time wondering why their buggy code fails silently. An earlier attempt added a __del__() method to the Future class itself, but this backfired because the presence of __del__() prevents garbage collection from breaking cycles. A way out of this catch-22 is to avoid having a __del__() method on the Future class itself, but instead to have a reference to a helper object with a __del__() method that logs the traceback, where we ensure that the helper object doesn't participate in cycles, and only the Future has a reference to it. The helper object is added when set_exception() is called. When the Future is collected, and the helper is present, the helper object is also collected, and its __del__() method will log the traceback. When the Future's result() or exception() method is called (and a helper object is present), it removes the helper object, after calling its clear() method to prevent it from logging. One downside is that we do a fair amount of work to extract the traceback from the exception, even when it is never logged. It would seem cheaper to just store the exception object, but that references the traceback, which references stack frames, which may reference the Future, which references the _TracebackLogger, and then the _TracebackLogger would be included in a cycle, which is what we're trying to avoid! As an optimization, we don't immediately format the exception; we only do the work when activate() is called, which call is delayed until after all the Future's callbacks have run. Since usually a Future has at least one callback (typically set by 'yield from') and usually that callback extracts the callback, thereby removing the need to format the exception. PS. I don't claim credit for this solution. I first heard of it in a discussion about closing files when they are collected. �loop�source_traceback�exc�tbc C s. | j | _ | j | _ | | _ d | _ d S)N)�_loopr �_source_tracebackr r r )�self�futurer r r r �__init__U s z_TracebackLogger.__init__c C s@ | j } | d k r<