관리-도구
편집 파일: formdata.cpython-311.pyc
� �܋f� � � � d dl Z d dlmZmZmZmZ d dlmZ d dlm Z m Z ddlmZm Z mZ ddlmZ ddlmZ d Z G d � d� � ZdS )� N)�Any�Iterable�List�Optional)� urlencode)� MultiDict�MultiDictProxy� )�hdrs� multipart�payload)�guess_filename)�Payload)�FormDatac � � e Zd ZdZ ddee dedee ddfd �Z e defd �� � Zdddd�ded edee dee dee ddfd�Zdeddfd�Z dej fd�Zdej fd�Zdefd�ZdS )r ztHelper class for form body generation. Supports multipart/form-data and application/x-www-form-urlencoded. � TN�fields�quote_fields�charset�returnc �> � t j d� � | _ g | _ d| _ d| _ || _ || _ t |t � � r"t |� � � � � }nt |t t f� � s|f} | j |� d S )N� form-dataF)r �MultipartWriter�_writer�_fields� _is_multipart� _is_processed� _quote_fields�_charset� isinstance�dict�list�items�tuple� add_fields)�selfr r r s �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/formdata.py�__init__zFormData.__init__ s� � � !�0��=�=���"$���"���"���)����� ��f�d�#�#� ��&�,�,�.�.�)�)�F�F��F�T�5�M�2�2� ��Y�F����� � � � � c � � | j S �N)r �r&