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

All Samples(20)  |  Call(16)  |  Derive(0)  |  Import(4)

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
 
    def __init__(self, items=()):
        self.v = MultiDict(
            [(normalize(key), val) for (key, val) in items])
        self.changed = False
 
    def __getitem__(self, key):
        return self.v.get(normalize(key), None)
    def __contains__(self, key):
        return normalize(key) in self.v
 
    def __setitem__(self, key, value):
        self.v[normalize(key)] = _remove_newlines(value)

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
 
    def __init__(self, items=()):
        self.v = MultiDict(
            [(normalize(key), val) for (key, val) in items])
        self.changed = False
 
    def __getitem__(self, key):
        return self.v.get(normalize(key), None)
    def __contains__(self, key):
        return normalize(key) in self.v
 
    def __setitem__(self, key, value):
        self.v[normalize(key)] = _remove_newlines(value)

src/f/l/flanker-0.4.14/flanker/mime/message/headers/__init__.py   flanker(Download)
from flanker.mime.message.headers.headers import MimeHeaders
from flanker.mime.message.headers.encodedword import mime_to_unicode
from flanker.mime.message.headers.parsing import normalize, is_empty, parse_header_value
from flanker.mime.message.headers.encoding import to_mime
from flanker.mime.message.headers.parametrized import is_parametrized

src/f/l/flanker-HEAD/flanker/mime/message/headers/__init__.py   flanker(Download)
from flanker.mime.message.headers.headers import MimeHeaders
from flanker.mime.message.headers.encodedword import mime_to_unicode
from flanker.mime.message.headers.parsing import normalize, is_empty, parse_header_value
from flanker.mime.message.headers.encoding import to_mime
from flanker.mime.message.headers.parametrized import is_parametrized