AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/ |
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/csv.cpython-39.pyc |
a R�f? � @ s d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZm Z mZmZm Z ddlmZ ddlmZ g d�ZG dd� d�ZG d d � d e�Zed e� G dd� de�Zed e� G dd� de�Zede� G dd� d�ZG dd� d�Zze W n e�y eZY n0 G dd� 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 @ sD e Zd ZdZdZdZdZdZdZdZ dZ dZdZdd� Z dd� 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 C s | j tkrd| _| �� d S )NT)� __class__r �_valid� _validate��self� r �(/opt/alt/python39/lib64/python3.9/csv.py�__init__* s zDialect.__init__c C sB zt | � W n0 ty< } ztt|���W Y d }~n d }~0 0 d S �N)�_Dialect� TypeErrorr �str)r �er r r r / s zDialect._validate)�__name__� __module__�__qualname__r �_namer � delimiter� quotecharZ escapechar�doublequote�skipinitialspace�lineterminator�quotingr r r r r r r s r c @ s( e Zd ZdZdZdZdZdZdZe Z dS )r z;Describe the usual properties of Excel-generated CSV files.�,�"TF� N)r&