File: //opt/alt/python311/lib/python3.11/site-packages/pyroute2/cli/__pycache__/session.cpython-311.pyc
�
�;f�# � � � d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z m
Z
mZmZ d dl
mZ d dlmZ G d� d e� � ZdS )
� )�print_functionN)�
namedtuple)�config)�t_comma�t_dict�t_pipe�t_stmt)�Parser)�
basestringc �n � e Zd Zd
d�Zed� � � Zej d� � � Zd� Zdd�Zd � Z d
� Z
dd�ZdS )�SessionNc �� � || _ | j | _ d | _ || _ g | _ d| _ t
� � | _ d| _ |pt j
| _
|pd| _ d S )Nr � )�ls�.�..�version�exit�:stack)�db�ptr�_ptrname�_ptrname_callback�stack�errors�set�indent_stack�prompt�sys�stdout�builtins)�self�ndbr �ptrname_callbackr! s �G/opt/alt/python311/lib/python3.11/site-packages/pyroute2/cli/session.py�__init__zSession.__init__ se � �����7�����
�!1�����
�����E�E�������*��
��� �
� %
��
�
�
� c � � | j S �N)r �r"