Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/autocommand/__pycache__/automain.cpython-39.pyc
Ðазад
a i�h � @ s: d dl Z ddlmZ G dd� dee�Zddd�dd �ZdS ) � N� )�AutocommandErrorc @ s e Zd ZdS )�AutomainRequiresModuleErrorN)�__name__� __module__�__qualname__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/autocommand/automain.pyr s r r ��args�kwargsc sJ t | �rt| ��| dks | du r>�du r,i �� �fdd�}|S dd� S dS )a� This decorator automatically invokes a function if the module is being run as the "__main__" module. Optionally, provide args or kwargs with which to call the function. If `module` is "__main__", the function is called, and the program is `sys.exit`ed with the return value. You can also pass `True` to cause the function to be called unconditionally. If the function is not called, it is returned unchanged by the decorator. Usage: @automain(__name__) # Pass __name__ to check __name__=="__main__" def main(): ... If __name__ is "__main__" here, the main function is called, and then sys.exit called with the return value. �__main__TNc s t �| � i ���� d S �N)�sys�exit��mainr r r �automain_decorator6 s z$automain.<locals>.automain_decoratorc S s | S r r r r r r �<lambda>; � zautomain.<locals>.<lambda>)�callabler )�moduler r r r r r �automain s r )r �errorsr � TypeErrorr r r r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка