관리-도구
편집 파일: _policybase.cpython-311.pyc
� �܋f79 � �4 � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z dd lZdd lm Z ddlmZ ddlmZ g d �Z G d� de� � Zd� Zd� Z G d� d e ej e� � � � Ze G d� de� � � � Z e� � Zd S )zwPolicy framework for the email package. Allows fine grained feature control of how the package parses and emits data. � )�unicode_literals)�print_function)�division)�absolute_import)�super)�str)�with_metaclassN)�header)�charset)�_has_surrogates)�Policy�Compat32�compat32c �: � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Z� xZ S )�_PolicyBasea� Policy Object basic framework. This class is useless unless subclassed. A subclass should define class attributes with defaults for any values that are to be managed by the Policy object. The constructor will then allow non-default values to be set for these attributes at instance creation time. The instance will be callable, taking these same attributes keyword arguments, and returning a new instance identical to the called instance except for those values changed by the keyword arguments. Instances may be added, yielding new instances with any non-default values from the right hand operand overriding those in the left hand operand. That is, A + B == A(<non-default values of B>) The repr of an instance can be used to reconstruct the object if and only if the repr of the values can be used to reconstruct those values. c � �� |� � � D ]k\ }}t | |� � r*t t | � � � ||� � �?t d� || j j � � � � �dS )z�Create new Policy, possibly overriding some defaults. See class docstring for a list of overridable attributes. �*{!r} is an invalid keyword argument for {}N) �items�hasattrr r �__setattr__� TypeError�format� __class__�__name__)�self�kw�name�valuer s ��s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/backports/email/_policybase.py�__init__z_PolicyBase.__init__0 s� �� � �8�8�:�:� 8� 8�K�D�%��t�T�"�"� 8��k�$�'�'�3�3�D�%�@�@�@�@��@�G�G��d�n�5�7� 7�8� 8� 8� 8� 8� c � � d� | j � � � D � � }d� | j j d� |� � � � S )Nc �@ � g | ]\ }}d � ||� � ��S )z{}={!r})r )�.0r r s r � <listcomp>z(_PolicyBase.__repr__.<locals>.<listcomp>? s<