AlkantarClanX12
Current Path : /proc/self/root/lib64/python3.8/__pycache__/ |
Current File : //proc/self/root/lib64/python3.8/__pycache__/csv.cpython-38.pyc |
U e5d? � @ s@ d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZm Z mZmZm Z ddlmZ ddlmZ dddd d ddd dddddddddddddgZG dd� d�ZG dd � d e�Zed e� G dd� de�Zede� G dd� de�Zed e� G d!d� d�ZG d"d� d�Zze W n ek �r, eZY nX G d#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)�StringIOr 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 �/usr/lib64/python3.8/csv.py�__init__* s zDialect.__init__c C s@ zt | � W n. tk r: } ztt|���W 5 d }~X Y nX 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 c @ s( e Zd ZdZdZdZdZdZdZe Z dS )r z;Describe the usual properties of Excel-generated CSV files.�,�"TF� N)r&