관리-도구
편집 파일: header.cpython-312.opt-1.pyc
� �Q�f^ � � � d Z g d�ZddlZddlZddlZddlZddlmZ ddlm Z e j ZdZdZ dZd Zd ZdZdZ ed � Z ed� Z ej* dej, ej. z � Z ej* d� Z ej* d� Zej6 j8 Zd� Z dd�Z G d� d� Z G d� d� Z G d� de!� Z"y)z+Header encoding and decoding functionality.)�Header� decode_header�make_header� N)�HeaderParseError)�charset� � � z � �N z �us-asciizutf-8ai =\? # literal =? (?P<charset>[^?]*?) # non-greedy up to the next ? is the charset \? # literal ? (?P<encoding>[qQbB]) # either a "q" or a "b", case insensitive \? # literal ? (?P<encoded>.*?) # non-greedy up to the next ?= is the encoded string \?= # literal ?= z[\041-\176]+:$z \n[^ \t]+:c � � t | d� rG| j D ��cg c]/ \ }}t j |t |� � t |� f��1 c}}S t j | � s| dfgS g }| j � D ]� }t j |� }d}|s�|j d� }|r|j � }d}|r|j |ddf� |rc|j d� j � }|j d� j � }|j d� } |j | ||f� |r���� g } t |� D ]K \ }}|dkD s�|d s�||dz d s�||dz d j � s�8| j |dz � �M t | � D ] } || = � g }|D ]� \ }}}|�|j ||f� �|dk( r3t j"