HomeSort by relevance Sort by last modified time
    Searched refs:header_factory (Results 1 - 6 of 6) sorted by null

  /external/python/cpython3/Lib/test/test_email/
test_pickleable.py 15 header_factory = HeaderRegistry() variable in class:TestPickleCopyHeader
17 unstructured = header_factory('subject', 'this is a test')
27 header = self.header_factory(name, value)
32 header = self.header_factory(name, value)
test_policy.py 35 'header_factory': email.policy.EmailPolicy.header_factory,
63 policies[new_policy]['header_factory'] = new_policy.header_factory
198 h = email.policy.default.header_factory('Test', 'test')
209 policy1.header_factory.map_to_type('foo', self.Foo)
210 h = policy1.header_factory('foo', 'test')
213 h = policy2.header_factory('foo', 'test')
220 policy1.header_factory.map_to_type('foo', self.Foo)
221 h = policy1.header_factory('foo', 'test'
    [all...]
test_contentmanager.py 643 header_factory = self.policy.header_factory
645 header_factory("To", "foo@example.com"),
646 header_factory("From", "foo@example.com"),
647 header_factory("Subject", "I'm talking to myself.")))
684 header_factory = self.policy.header_factory
687 header_factory("Content-Type", " foo/bar"),)
702 header_factory = self.policy.header_factory
    [all...]
  /external/python/cpython3/Lib/email/
policy.py 63 header_factory -- a callable that takes two arguments, 'name' and
67 header. A default header_factory is provided that
89 header_factory = HeaderRegistry() variable in class:EmailPolicy
95 if 'header_factory' not in kw:
96 object.__setattr__(self, 'header_factory', HeaderRegistry())
105 return self.header_factory[name].max_count
134 unchanged. Otherwise the name and value are passed to header_factory
147 return (name, self.header_factory(name, value))
153 are passed to the header_factory method, and the resulting custom
162 return self.header_factory(name, value
    [all...]
headerregistry.py 546 """A header_factory and header registry."""
550 """Create a header_factory that works with the Policy API.
contentmanager.py 100 headers = [mp.header_factory(*mp.header_source_parse([header]))

Completed in 493 milliseconds