Mini Shell
�
P�t*��w�� � � d Z ddlZddlmZmZmZmZmZmZm Z m
Z
mZmZm
Z
mZmZm Z ddlmZ ddlmZ g d�Z G d� d� � Z G d � d
e� � Z ed
e� � G d� de� � Z ed
e� � G d� de� � Z ede� � G d� d� � Z G d� d� � Z e n
# e$ r eZY nw xY w G d� d� � ZdS )z+
csv.py - read/write/investigate CSV files
� N)�Error�__version__�writer�reader�register_dialect�unregister_dialect�get_dialect�
list_dialects�field_size_limit�
QUOTE_MINIMAL� QUOTE_ALL�QUOTE_NONNUMERIC�
QUOTE_NONE�__doc__)�Dialect)�StringIO)r r
r r r r r �excel� excel_tabr r r r r r
�Snifferr r �
DictReader�
DictWriter�unix_dialectc �B � e Zd ZdZdZdZdZdZdZdZ dZ
dZdZd� Z
d� ZdS )r z�Describe a CSV dialect.
This must be subclassed (see csv.excel). Valid attributes are:
delimiter, quotechar, escapechar, doublequote, skipinitialspace,
lineterminator, quoting.
� FNc �\ � | j t k rd| _ | � � � d S )NT)� __class__r �_valid� _validate��selfs �*/opt/alt/python311/lib64/python3.11/csv.py�__init__zDialect.__init__* s, � ��>�W�$�$��D�K��������� c � � t | � � d S # t $ r!}t t |� � � � �d }~ww xY w�N)�_Dialect� TypeErrorr �str)r �es r! r zDialect._validate/ sG � � ��T�N�N�N�N�N��� � � ���A���-�-������ ���s � �
>�9�>)�__name__�
__module__�__qualname__r �_namer � delimiter� quotechar�
escapechar�doublequote�skipinitialspace�lineterminator�quotingr"