�
,�]c @` s4 d Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m
Z
d d l Z d d
l m
Z
d d l m Z d d l m Z d
d d g Z d e f d � � YZ d � Z d � Z d e
e j e � f d � � YZ e d e f d � � Y� Z e � Z d S( uw Policy framework for the email package.
Allows fine grained feature control of how the package parses and emits data.
i ( t unicode_literals( t print_function( t division( t absolute_import( t super( t str( t with_metaclassN( t header( t charset( t _has_surrogatesu Policyu Compat32u compat32t _PolicyBasec B` s; e Z d Z d � Z d � Z d � Z d � Z d � Z RS( u� 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 K` sj xc | j � D]U \ } } t | | � rD t t | � j | | � q
t d j | | j j � � � q
Wd S( u� Create new Policy, possibly overriding some defaults.
See class docstring for a list of overridable attributes.
u* {!r} is an invalid keyword argument for {}N( t itemst hasattrR R
t __setattr__t TypeErrort formatt __class__t __name__( t selft kwt namet value( ( sF /usr/lib/python2.7/site-packages/future/backports/email/_policybase.pyt __init__0 s c C` sS g | j j � D] \ } } d j | | � ^ q } d j | j j d j | � � S( Nu {}={!r}u {}({})u , ( t __dict__R R R R t join( R R R t args( ( sF /usr/lib/python2.7/site-packages/future/backports/email/_policybase.pyt __repr__>