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

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/f/l/flanker-0.4.14/flanker/mime/message/headers/parsing.py   flanker(Download)
def parse_header_value(name, val):
    if not is_pure_ascii(val):
        if parametrized.is_parametrized(name, val):
            raise DecodingError("Unsupported value in content- header")
        return to_unicode(val)
    else:
        if parametrized.is_parametrized(name, val):

src/f/l/flanker-HEAD/flanker/mime/message/headers/parsing.py   flanker(Download)
def parse_header_value(name, val):
    if not is_pure_ascii(val):
        if parametrized.is_parametrized(name, val):
            raise DecodingError("Unsupported value in content- header")
        return to_unicode(val)
    else:
        if parametrized.is_parametrized(name, val):

src/f/l/flanker-0.4.14/flanker/mime/message/headers/encoding.py   flanker(Download)
def encode(name, value):
    try:
        if parametrized.is_parametrized(name, value):
            value, params = value
            return encode_parametrized(name, value, params)

src/f/l/flanker-HEAD/flanker/mime/message/headers/encoding.py   flanker(Download)
def encode(name, value):
    try:
        if parametrized.is_parametrized(name, value):
            value, params = value
            return encode_parametrized(name, value, params)

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