File: //usr/lib64/python3.9/__pycache__/code.cpython-39.opt-2.pyc
a
    �DOg~)  �                   @   s�   d dl Z d dlZd dlmZmZ g d�ZG dd� d�ZG dd� de�Zddd	�Ze	d
kr�d dl
Z
e
�� Zej
ddd
d� e�� Zejs�e jjr�dZndZee� dS )�    N)�CommandCompiler�compile_command)�InteractiveInterpreter�InteractiveConsole�interactr   c                   @   sB   e Zd Zddd�Zddd�Zdd	� Zdd
d�Zdd
� Zdd� ZdS )r   Nc                 C   s$   |d u rdd d�}|| _ t� | _d S )NZ__console__)�__name__�__doc__)�localsr   �compile)�selfr	   � r   �/usr/lib64/python3.9/code.py�__init__   s    	
zInteractiveInterpreter.__init__�<input>�singlec              
   C   sR   z| � |||�}W n$ tttfy6   | �|� Y dS 0 |d u rDdS | �|� dS )NFT)r
   �
OverflowError�SyntaxError�
ValueError�showsyntaxerror�runcode)r   �source�filename�symbol�coder   r   r
   �	runsource&