관리-도구
편집 파일: csv.cpython-37.pyc
B � f4? � @ sL d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZm Z mZmZm Z ddlmZ ddlmZ ddlmZ ddd d ddd ddddddddddddddgZG dd� d�ZG dd� de�Zede� G dd� de�Zede� G d d� de�Zed!e� G d"d� d�ZG d#d� d�Zye W n ek �r8 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)�OrderedDict)�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 �(/opt/alt/python37/lib64/python3.7/csv.py�__init__+ s zDialect.__init__c C s@ yt | � W n. tk r: } ztt|���W d d }~X Y nX d S )N)�_Dialect� TypeErrorr �str)r �er r r r 0 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.�,�"TFz N)r% r&