Mini Shell
U
��eg_Q � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZdd� ZG dd� d�Z dd�d d
�Z
dd� Zdd�d
d�Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Z d7d8� Z!d9d:� Z"d;d<� Z#d=d>� Z$d?d@� Z%dAdB� Z&dCdD� Z'dEdF� Z(dGdH� Z)dNdIdJ�Z*dKdL� Z+e,dMk�r|e+� dS )OzK
Collect various information about Python to help debugging test failures.
� )�print_functionNc C s* | d krd S t | �} t�dd| �} | �� S )Nz\s+� )�str�re�sub�strip)�text� r �./opt/cppython/lib/python3.8/test/pythoninfo.py�normalize_text s
r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�
PythonInfoc C s
i | _ d S �N)�info��selfr r r
�__init__ s zPythonInfo.__init__c C s\ || j krtd| ��|d kr"d S t|t�sNt|t�s>t|�}|�� }|sNd S || j |<