| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/urllib3/__pycache__/ |
Upload File : |
a
t~�`� � @ s� d dl mZ d dlZd dlZd dlZd dlmZ ddlmZ ddl m
Z
ddlmZ e�
d�d Zd
d� Zdd
� Zdd� Zddd�ZdS )� )�absolute_importN)�BytesIO� )�RequestField)�six)�bzutf-8� c C s$ t �t�d��} tjs | �d�} | S )zN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
� �ascii)�binasciiZhexlify�os�urandomr ZPY2�decode)�boundary� r �4/usr/lib/python3.9/site-packages/urllib3/filepost.py�choose_boundary s
r c c sJ t | t�rt�| �}nt| �}|D ]"}t |t�r8|V q"tj|� V q"dS )z�
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of
:class:`~urllib3.fields.RequestField`.
N)�
isinstance�dictr � iteritems�iterr Zfrom_tuples)�fields�i�fieldr r r �iter_field_objects s
r c C s, t | t�rdd� t�| �D �S dd� | D �S )a-
.. deprecated:: 1.6
Iterate over fields.
The addition of :class:`~urllib3.fields.RequestField` makes this function
obsolete. Instead, use :func:`iter_field_objects`, which returns
:class:`~urllib3.fields.RequestField` objects.
Supports list of (k, v) tuples and dicts.
c s s | ]\}}||fV qd S �Nr ��.0�k�vr r r � <genexpr>: � ziter_fields.<locals>.<genexpr>c s s | ]\}}||fV qd S r r r r r r r <