Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(4)  |  Derive(0)  |  Import(8)

src/f/l/flanker-0.4.14/flanker/mime/message/part.py   flanker(Download)
from flanker.mime.message.headers import WithParams, ContentType, MessageId, Subject
from flanker.mime.message.headers.parametrized import fix_content_type
from flanker.mime.message.errors import EncodingError, DecodingError
 
log = logging.getLogger(__name__)
                self.headers.to_stream(out)
            elif self.is_root():
                raise EncodingError("Root message should have headers")
 
            out.write(CRLF)

src/f/l/flanker-HEAD/flanker/mime/message/part.py   flanker(Download)
from flanker.mime.message.headers import WithParams, ContentType, MessageId, Subject
from flanker.mime.message.headers.parametrized import fix_content_type
from flanker.mime.message.errors import EncodingError, DecodingError
 
log = logging.getLogger(__name__)
                self.headers.to_stream(out)
            elif self.is_root():
                raise EncodingError("Root message should have headers")
 
            out.write(CRLF)

src/f/l/flanker-0.4.14/flanker/mime/message/headers/headers.py   flanker(Download)
from paste.util.multidict import MultiDict
from flanker.mime.message.headers.parsing import normalize, parse_stream
from flanker.mime.message.headers.encoding import to_mime
from flanker.mime.message.errors import EncodingError
 
                h = h.encode('ascii')
            except UnicodeDecodeError:
                raise EncodingError("Non-ascii header name")
            stream.write("{0}: {1}\r\n".format(h, to_mime(h, v)))
 

src/f/l/flanker-HEAD/flanker/mime/message/headers/headers.py   flanker(Download)
from paste.util.multidict import MultiDict
from flanker.mime.message.headers.parsing import normalize, parse_stream
from flanker.mime.message.headers.encoding import to_mime
from flanker.mime.message.errors import EncodingError
 
                h = h.encode('ascii')
            except UnicodeDecodeError:
                raise EncodingError("Non-ascii header name")
            stream.write("{0}: {1}\r\n".format(h, to_mime(h, v)))
 

src/f/l/flanker-0.4.14/flanker/mime/__init__.py   flanker(Download)
read more in package details.
"""
from flanker.mime.message.errors import DecodingError, EncodingError, MimeError
from flanker.mime import create
from flanker.mime.create import from_string

src/f/l/flanker-HEAD/flanker/mime/__init__.py   flanker(Download)
read more in package details.
"""
from flanker.mime.message.errors import DecodingError, EncodingError, MimeError
from flanker.mime import create
from flanker.mime.create import from_string

src/f/l/flanker-HEAD/tests/mime/message/part_test.py   flanker(Download)
from flanker.mime.create import multipart, text
from flanker.mime.message.scanner import scan
from flanker.mime.message.errors import EncodingError, DecodingError
from email import message_from_string
from contextlib import closing

src/f/l/flanker-0.4.14/tests/mime/message/part_test.py   flanker(Download)
from flanker.mime.create import multipart, text
from flanker.mime.message.scanner import scan
from flanker.mime.message.errors import EncodingError, DecodingError
from email import message_from_string
from contextlib import closing