ok
Direktori : /proc/self/root/lib64/python3.6/wsgiref/__pycache__/ |
Current File : //proc/self/root/lib64/python3.6/wsgiref/__pycache__/headers.cpython-36.opt-2.pyc |
3 \n � @ s. d dl Z e jd�Zddd�ZG dd� d�ZdS ) � Nz[ \(\)<>@,;:\\"/\[\]\?=]� c C sX |d k rPt |�dkrP|s"tj|�rB|jdd�jdd�}d| |f S d| |f S n| S d S )Nr �\z\\�"z\"z%s="%s"z%s=%s)�len� tspecials�search�replace)Zparam�valueZquote� r �'/usr/lib64/python3.6/wsgiref/headers.py�_formatparam s r c @ s� e Zd Zd$dd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z d%dd�Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� ZdS )&�HeadersNc C s. |d k r|ng }t |�tk r$td��|| _d S )Nz+Headers must be a list of name/value tuples)�type�list� TypeError�_headers)�selfZheadersr r r �__init__ s zHeaders.__init__c C s&