관리-도구
편집 파일: csv.cpython-36.pyc
3 \4? � @ 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| _| j� d S )NT)� __class__r �_valid� _validate)�self� r �/usr/lib64/python3.6/csv.py�__init__+ s zDialect.__init__c C s@ yt | � W n. tk r: } ztt|���W Y d d }~X 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&