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

All Samples(38)  |  Call(34)  |  Derive(0)  |  Import(4)

src/f/l/flanker-0.4.14/flanker/mime/bounce.py   flanker(Download)
from cStringIO import StringIO
from flanker.mime.message.headers.parsing import parse_stream
from flanker.mime.message.headers import MimeHeaders
 
 
        if p.content_type.is_delivery_status():
            collected += collect_from_status(p.body)
    return MimeHeaders(collected)
 
 

src/f/l/flanker-HEAD/flanker/mime/bounce.py   flanker(Download)
from cStringIO import StringIO
from flanker.mime.message.headers.parsing import parse_stream
from flanker.mime.message.headers import MimeHeaders
 
 
        if p.content_type.is_delivery_status():
            collected += collect_from_status(p.body)
    return MimeHeaders(collected)
 
 

src/f/l/flanker-0.4.14/flanker/mime/message/part.py   flanker(Download)
    def __init__(
        self, content_type, body, charset=None, disposition=None, filename=None):
        self.headers = headers.MimeHeaders()
        self.body = body
        self.disposition = disposition or ('attachment' if filename else None)
    def __init__(self, ctype):
        self.headers = headers.MimeHeaders()
        self.body = None
        self.headers['Content-Type'] = ctype
        self.headers['MIME-Version'] = '1.0'

src/f/l/flanker-HEAD/flanker/mime/message/part.py   flanker(Download)
    def __init__(
        self, content_type, body, charset=None, disposition=None, filename=None):
        self.headers = headers.MimeHeaders()
        self.body = body
        self.disposition = disposition or ('attachment' if filename else None)
    def __init__(self, ctype):
        self.headers = headers.MimeHeaders()
        self.body = None
        self.headers['Content-Type'] = ctype
        self.headers['MIME-Version'] = '1.0'

src/f/l/flanker-0.4.14/tests/mime/message/headers/headers_test.py   flanker(Download)
from nose.tools import *
from mock import *
from flanker.mime.message.headers import MimeHeaders
from flanker.mime.message.errors import DecodingError
from cStringIO import StringIO
 
from .... import *
 
def headers_case_insensitivity_test():
    h = MimeHeaders()
def headers_order_preserved_test():
    headers = [('mime-version', '1'), ('rEceived', '2'), ('mime-version', '3'), ('ReceiveD', '4')]
    h = MimeHeaders(headers)
 
    # various types of iterations
def headers_boolean_test():
    eq_(False, bool(MimeHeaders()))
    eq_(True, bool(MimeHeaders([('A', 1)])))
 
def headers_to_string_test():

src/f/l/flanker-HEAD/tests/mime/message/headers/headers_test.py   flanker(Download)
from nose.tools import *
from mock import *
from flanker.mime.message.headers import MimeHeaders
from flanker.mime.message.errors import DecodingError
from cStringIO import StringIO
 
from .... import *
 
def headers_case_insensitivity_test():
    h = MimeHeaders()
def headers_order_preserved_test():
    headers = [('mime-version', '1'), ('rEceived', '2'), ('mime-version', '3'), ('ReceiveD', '4')]
    h = MimeHeaders(headers)
 
    # various types of iterations
def headers_boolean_test():
    eq_(False, bool(MimeHeaders()))
    eq_(True, bool(MimeHeaders([('A', 1)])))
 
def headers_to_string_test():