R`i d dl mZ d dlZd dlZd dlZd dlmZ ddlmZ ddl m
Z
ddlmZ ej d d Zd
Zd Zd Zdd
Zy) )absolute_importN)BytesIO )RequestField)six)bzutf-8 c t j t j d } t j
s| j
d } | S )zN
Our embarrassingly-simple replacement for mimetools.choose_boundary.
ascii)binasciihexlifyosurandomr PY2decode)boundarys /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/urllib3/filepost.pychoose_boundaryr s6
2/H77??7+O c # K t | t rt j | }nt | }|D ]+ }t |t
r| t j | - yw)z
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of
:class:`~urllib3.fields.RequestField`.
N)
isinstancedictr iteritemsiterr from_tuples)fieldsifields r iter_field_objectsr sS &$MM&!Le\*K**E22 s A#A%c l t | t rd t j | D S d | 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 3 * K | ] \ }}||f
y wN .0kvs r