//usr/lib64/lib64//lib64/python2.7//ó
ÚœSec @ s6 d Z d d d g Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m
Z
d Z d Z d
Z
d d Z d Z d
Z e
d ƒ Z e
d ƒ Z e j d e j e j Be j Bƒ Z e j d ƒ Z e j d ƒ Z e j j Z d „ Z e e d d „ Z d f d „ ƒ YZ d „ Z d „ Z! d S( s+ Header encoding and decoding functionality.t Headert
decode_headert make_headeriÿÿÿÿN( t HeaderParseError( t Charsets
t u i u iL s us-asciis utf-8s§
=\? # literal =?
(?P[^?]*?) # non-greedy up to the next ? is the charset
\? # literal ?
(?P[qb]) # either a "q" or a "b", case insensitive
\? # literal ?
(?P.*?) # non-greedy up to the next ?= is the encoded string
\?= # literal ?=
(?=[ \t]|$) # whitespace or the end of the string
s [\041-\176]+:$s
\n[^ \t]+:c C sG t | ƒ } t j | ƒ s( | d f g Sg } d } x| j ƒ D]þ} t j | ƒ so | j | d f ƒ qA n t j | ƒ } x¾| r>| j d ƒ j ƒ } | rõ | rß | d d d k rß | d d t | d f | d