Lines Matching refs:policy
37 policy=None): argument
62 mangle_from_ = True if policy is None else policy.mangle_from_
66 self.policy = policy
93 policy = msg.policy if self.policy is None else self.policy
95 policy = policy.clone(linesep=linesep)
97 policy = policy.clone(max_line_length=self.maxheaderlen)
98 self._NL = policy.linesep
106 old_gen_policy = self.policy
107 old_msg_policy = msg.policy
109 self.policy = policy
110 msg.policy = policy
118 self.policy = old_gen_policy
119 msg.policy = old_msg_policy
126 policy=self.policy)
226 self.write(self.policy.fold(h, v))
320 p = self.policy
321 self.policy = p.clone(max_line_length=0)
325 self.policy = p
422 self._fp.write(self.policy.fold_binary(h, v))
431 if _has_surrogates(msg._payload) and not self.policy.cte_type=='7bit':
456 policy=None): argument
479 policy=policy)