%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/email/__pycache__/ |
Current File : //usr/local/lib/python3.8/email/__pycache__/message.cpython-38.pyc |
U pa @ s d Z ddgZddlZddlZddlZddlmZmZ ddlm Z ddlm Z ddlmZm Z dd lmZ dd lmZ ejZdZedZd d ZdddZdd Zdd ZG dd dZG dd deZG dd deZdS )z8Basic message object for the email package object model.MessageEmailMessage N)BytesIOStringIO)utils)errors)Policycompat32charset)decode_bz; z[ \(\)<>@,;:\\"/\[\]\?=]c C s4 t | d\}}}|s$| d fS | | fS )N;)str partitionstrip)paramasepb r )/usr/local/lib/python3.8/email/message.py_splitparam s r Tc C s |dk rt |dkrt|trL| d7 } t|d |d |d }d| |f S z|d W n6 tk r | d7 } t|dd }d| |f Y S X |st|rd | t |f S d| |f S n| S dS )a~ Convenience function to format and return a key=value pair. This will quote the value if needed or if quote is true. If value is a three tuple (charset, language, value), it will be encoded according to RFC2231 rules. If it contains non-ascii characters it will likewise be encoded according to RFC2231 rules, using the utf-8 charset and a null language. Nr * %s=%sasciizutf-8 z%s="%s") len isinstancetupler Zencode_rfc2231encodeUnicodeEncodeError tspecialssearchquote)r valuer% r r r _formatparam' s r' c C s dt | } g }| d d dkr| dd } | d}|dkrp| dd|| dd| d rp| d|d }q6|dk rt| }| d | }d|kr|d}|d | d ||d d }|| | |d } q|S )Nr r r "z\"r =)r findcountr indexr lowerappend)sZplistendfir r r _parseparamI s ( ,r3 c C s4 t | tr&| d | d t| d fS t| S d S )Nr r r )r r r unquote)r&