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

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

src/f/l/flanker-0.4.14/flanker/addresslib/address.py   flanker(Download)
from flanker.utils import is_pure_ascii
from flanker.utils import metrics_wrapper
from flanker.mime.message.headers.encoding import encode_string
from flanker.mime.message.headers.encodedword import mime_to_unicode
from urlparse import urlparse
            self.display_name = u''
        else:
            self.display_name = encode_string(None, display_name,
                                              maxlinelen=MAX_ADDRESS_LENGTH)
 

src/f/l/flanker-HEAD/flanker/addresslib/address.py   flanker(Download)
from flanker.utils import is_pure_ascii
from flanker.utils import metrics_wrapper
from flanker.mime.message.headers.encoding import encode_string
from flanker.mime.message.headers.encodedword import mime_to_unicode
from urlparse import urlparse
            self.display_name = u''
        else:
            self.display_name = encode_string(None, display_name,
                                              maxlinelen=MAX_ADDRESS_LENGTH)
 

src/f/l/flanker-0.4.14/flanker/addresslib/parser.py   flanker(Download)
from flanker.addresslib.tokenizer import URL
 
from flanker.mime.message.headers.encoding import encode_string
 
from flanker.utils import is_pure_ascii
        uwrd = self.stream.get_token(UNI_QSTR, 'qstr')
        if uwrd and isinstance(uwrd, unicode) and not contains_control_chars(uwrd):
            return u'"{0}"'.format(encode_string(None, uwrd))
 
        # rollback

src/f/l/flanker-HEAD/flanker/addresslib/parser.py   flanker(Download)
from flanker.addresslib.tokenizer import URL
 
from flanker.mime.message.headers.encoding import encode_string
 
from flanker.utils import is_pure_ascii
        uwrd = self.stream.get_token(UNI_QSTR, 'qstr')
        if uwrd and isinstance(uwrd, unicode) and not contains_control_chars(uwrd):
            return u'"{0}"'.format(encode_string(None, uwrd))
 
        # rollback

src/f/l/flanker-0.4.14/tests/mime/message/headers/encoding_test.py   flanker(Download)
 
from flanker.mime.message import headers
from flanker.mime.message.headers.encoding import (encode_unstructured,
                                                   encode_string)
from flanker.mime.message import part
    """
    eq_("very\n loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
        encode_string(None, "very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"))
 
    eq_("very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
        encode_string(None, "very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong", maxlinelen=78))

src/f/l/flanker-HEAD/tests/mime/message/headers/encoding_test.py   flanker(Download)
 
from flanker.mime.message import headers
from flanker.mime.message.headers.encoding import (encode_unstructured,
                                                   encode_string)
from flanker.mime.message import part
    """
    eq_("very\n loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
        encode_string(None, "very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"))
 
    eq_("very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
        encode_string(None, "very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong", maxlinelen=78))