ž
¦ÿf÷7 c @ sÄ d 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 Gd d
„ d
ƒ Z d d „ Z
d
d „ Z Gd d „ d e d e j ƒZ
e Gd d „ d e
ƒ ƒ 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 N( u header( u charset( u _has_surrogatesu Policyu Compat32u compat32c s\ | Ee Z d Z d Z ‡ f d d † Z d d „ Z d d „ Z d d „ Z d
d „ Z ‡ S( u _PolicyBaseu‡ 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()
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 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( u itemsu hasattru superu _PolicyBaseu __setattr__u TypeErroru formatu __class__u __name__( u selfu kwu nameu value( u __class__( u6 /opt/alt/python33/lib64/python3.3/email/_policybase.pyu __init__) s u _PolicyBase.__init__c C s; d d „ | j j ƒ Dƒ } d j | j j d j | ƒ ƒ S( Nc S s( g | ] \ } } d j | | ƒ ‘ q S( u {}={!r}( u format( u .0u nameu value( ( u6 /opt/alt/python33/lib64/python3.3/email/_policybase.pyu
8 s u( _PolicyBase.__repr__..u {}({})u , ( u __dict__u itemsu formatu __class__u __name__u join( u selfu args( ( u6 /opt/alt/python33/lib64/python3.3/email/_policybase.pyu __repr__7 s u _PolicyBase.__repr__c K s¬ | j j | j ƒ } x0 | j j ƒ D] \ } } t j | | | ƒ q% Wx] | j ƒ D]O \ } } t | | ƒ s‘ t d j | | j j ƒ ƒ ‚ n t j | | | ƒ qU W| S( uÐ Return a new instance with specified attributes changed.
The new instance has the same attribute values as the current object,
except for the changes passed in as keyword arguments.
u* {!r} is an invalid keyword argument for {}(
u __class__u __new__u __dict__u itemsu objectu __setattr__u hasattru TypeErroru formatu __name__( u selfu kwu newpolicyu attru value( ( u6 /opt/alt/python33/lib64/python3.3/email/_policybase.pyu clone<