AlkantarClanX12
Current Path : /opt/alt/python27/lib64/python2.7/wsgiref/ |
Current File : //opt/alt/python27/lib64/python2.7/wsgiref/headers.pyo |
� ^ bc @ s] d Z d d l m Z m Z d d l Z e j d � Z d d d � Z d d d � � YZ d S( s� Manage HTTP Response Headers Much of this module is red-handedly pilfered from email.message in the stdlib, so portions are Copyright (C) 2001,2002 Python Software Foundation, and were written by Barry Warsaw. i����( t ListTypet TupleTypeNs [ \(\)<>@,;:\\"/\[\]\?=]i c C sx | d k rp t | � d k rp | s3 t j | � r_ | j d d � j d d � } d | | f Sd | | f Sn | Sd S( s~ Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. i s \s \\t "s \"s %s="%s"s %s=%sN( t Nonet lent tspecialst searcht replace( t paramt valuet quote( ( s4 /opt/alt/python27/lib64/python2.7/wsgiref/headers.pyt _formatparam s t Headersc B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z e Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s, Manage a collection of HTTP response headersc C s. t | � t k r! t d � � n | | _ d S( Ns+ Headers must be a list of name/value tuples( t typeR t TypeErrort _headers( t selft headers( ( s4 /opt/alt/python27/lib64/python2.7/wsgiref/headers.pyt __init__"