3 �ga^ � @ s� d dl mZ d dlmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Z G dd� de�Z dS )� )�OrderedDict)�CaseInsensitiveDictc @ s e Zd ZdZdS )�RequestHeadersDictzX Headers are case-insensitive and multiple values are currently not supported. N)�__name__� __module__�__qualname__�__doc__� r r �/usr/lib/python3.6/dicts.pyr s r c @ s e Zd ZdS )�RequestJSONDataDictN)r r r r r r r r s r c s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�MultiValueOrderedDictz2Multi-value dict for URL parameters and form data.c s\ t |t� st�|| kr(t� j||� n0t | | t�sJt� j|| | g� | | j|� dS )z� If `key` is assigned more than once, `self[key]` holds a `list` of all the values. This allows having multiple fields with the same name in form data and URL params. N)� isinstance�list�AssertionError�super�__setitem__�append)�self�key�value)� __class__r r r s z!MultiValueOrderedDict.__setitem__c # sD x>t � j� D ]0\}}t|t�s$|g}x|D ]}||fV q*W qW d S )N)r �itemsr r )r r �valuesr )r r r r % s zMultiValueOrderedDict.items)r r r r r r � __classcell__r r )r r r s r c @ s e Zd ZdS )�RequestQueryParamsDictN)r r r r r r r r - s r c @ s e Zd ZdS )�RequestDataDictN)r r r r r r r r 1 s r c @ s e Zd ZdS )�MultipartRequestDataDictN)r r r r r r r r 5 s r c @ s e Zd ZdS )�RequestFilesDictN)r r r r r r r r 9 s r N)�collectionsr Zrequests.structuresr r r r r r r r r r r r �<module> s
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__init__.cpython-36.opt-1.pyc | File | 113 B | 0644 |
|
__init__.cpython-36.pyc | File | 113 B | 0644 |
|
argparser.cpython-36.opt-1.pyc | File | 11.82 KB | 0644 |
|
argparser.cpython-36.pyc | File | 11.86 KB | 0644 |
|
argtypes.cpython-36.opt-1.pyc | File | 7.43 KB | 0644 |
|
argtypes.cpython-36.pyc | File | 7.43 KB | 0644 |
|
constants.cpython-36.opt-1.pyc | File | 2.02 KB | 0644 |
|
constants.cpython-36.pyc | File | 2.02 KB | 0644 |
|
definition.cpython-36.opt-1.pyc | File | 17.74 KB | 0644 |
|
definition.cpython-36.pyc | File | 17.74 KB | 0644 |
|
dicts.cpython-36.opt-1.pyc | File | 2.1 KB | 0644 |
|
dicts.cpython-36.pyc | File | 2.13 KB | 0644 |
|
exceptions.cpython-36.opt-1.pyc | File | 276 B | 0644 |
|
exceptions.cpython-36.pyc | File | 276 B | 0644 |
|
requestitems.cpython-36.opt-1.pyc | File | 4.26 KB | 0644 |
|
requestitems.cpython-36.pyc | File | 4.26 KB | 0644 |
|