OwlCyberSecurity - MANAGER
Edit File: _sitebuiltins.cpython-38.pyc
U ����i�f+����������������������@���s@���d�Z�ddlZG�dd��de�ZG�dd��de�ZG�dd��de�ZdS�) z= The objects used by the site module to add custom builtins. �����Nc�������������������@���s&���e�Zd�Zdd��Zdd��Zddd�ZdS�) �Quitterc�����������������C���s���||�_�||�_d�S��N��name�eof)�selfr���r�����r����2/opt/alt/python38/lib64/python3.8/_sitebuiltins.py�__init__���s����zQuitter.__init__c�����������������C���s���d|�j�|�jf�S�)NzUse %s() or %s to exitr����r���r���r���r ����__repr__���s����zQuitter.__repr__Nc�����������������C���s(���zt�j����W�n���Y�nX�t|��d�S�r���)�sys�stdin�close� SystemExit)r����coder���r���r ����__call__���s ����zQuitter.__call__)N)�__name__� __module__�__qualname__r ���r���r���r���r���r���r ���r��� ���s���r���c�������������������@���s6���e�Zd�ZdZdZd dd�Zdd��Zdd ��Zd d��ZdS�)�_Printerzninteractive prompt objects for printing the license text, a list of contributors and the copyright notice.����r���c��������������������s4���dd�l��||�_||�_d�|�_���fdd�|D��|�_d�S�)Nr���c��������������������s$���g�|�]}��D�]}�j��||��qqS�r���)�path�join)�.0�dir�filename��files�osr���r ���� <listcomp>(���s�����z%_Printer.__init__.<locals>.<listcomp>)r����_Printer__name�_Printer__data�_Printer__lines�_Printer__filenames)r���r����datar����dirsr���r���r ���r ���#���s�����z_Printer.__init__c�������������� ���C���s~���|�j�r d�S�d�}|�jD�]B}z(t|d��}|���}W�5�Q�R�X�W��qXW�q�tk rT���Y�qX�q|sb|�j}|�d�|�_�t|�j��|�_d�S�)N�r� ) r#���r$����open�read�OSErrorr"����split�len�_Printer__linecnt)r���r%���r����fpr���r���r ����__setup,���s���� z_Printer.__setupc�����������������C���s8���|������t|�j�|�jkr$d�|�j�S�d|�jfd��S�d�S�)Nr(���z!Type %s() to see the full %s text����)�_Printer__setupr-���r#����MAXLINESr���r!���r���r���r���r ���r���<���s����z_Printer.__repr__c�����������������C���s����|������d}d}z(t|||�j��D�]}t|�j|���q"W�n�tk rP���Y�q�Y�qX�||�j7�}d�}|d�kr~t|�}|dkr`d�}q`|dkrq�qd�S�)Nz0Hit Return for more, or q (and Return) to quit: r���)���qr5���)r2����ranger3����printr#���� IndexError�input)r����prompt�lineno�i�keyr���r���r ���r���C���s ���� z_Printer.__call__N)r���r���) r���r���r����__doc__r3���r ���r2���r���r���r���r���r���r ���r������s��� r���c�������������������@���s ���e�Zd�ZdZdd��Zdd��ZdS�)�_Helpera3��Define the builtin 'help'. This is a wrapper around pydoc.help that provides a helpful message when 'help' is typed at the Python interactive prompt. Calling help() at the Python prompt starts an interactive help session. Calling help(thing) prints help for the python object 'thing'. c�����������������C���s���dS�)NzHType help() for interactive help, or help(object) for help about object.r���r���r���r���r ���r���b���s����z_Helper.__repr__c�����������������O���s���dd�l�}|j||�S�)Nr���)�pydoc�help)r����args�kwdsr@���r���r���r ���r���e���s����z_Helper.__call__N)r���r���r���r>���r���r���r���r���r���r ���r?���X���s��� r?���)r>���r ����objectr���r���r?���r���r���r���r ����<module>���s��� ;