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

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/f/l/flanker-0.4.14/flanker/mime/message/fallback/part.py   flanker(Download)
    def __setitem__(self, key, value):
        if key in self.m:
            del self.m[key]
        self.m[key] = headers.to_mime(key, value)
 
    def add(self, key, value):
        self.m[key] = headers.to_mime(key, value)
 
    def keys(self):
        return self.m.keys()

src/f/l/flanker-HEAD/flanker/mime/message/fallback/part.py   flanker(Download)
    def __setitem__(self, key, value):
        if key in self.m:
            del self.m[key]
        self.m[key] = headers.to_mime(key, value)
 
    def add(self, key, value):
        self.m[key] = headers.to_mime(key, value)
 
    def keys(self):
        return self.m.keys()

src/f/l/flanker-0.4.14/tests/mime/message/headers/encoding_test.py   flanker(Download)
def encodings_test():
    s = (u"Это сообщение с длинным сабжектом "
         u"специально чтобы проверить кодировки")
 
    eq_(s, headers.mime_to_unicode(headers.to_mime('Subject', s)))
 
    s = "this is sample ascii string"
 
    eq_(s, headers.to_mime('Subject',s))
    folded_s = ("This is a long subject with commas, bob, Jay, suzy, tom, over"
                "\n 75,250,234 times!")
    eq_(folded_s, headers.to_mime('Subject', s))
 
 

src/f/l/flanker-HEAD/tests/mime/message/headers/encoding_test.py   flanker(Download)
def encodings_test():
    s = (u"Это сообщение с длинным сабжектом "
         u"специально чтобы проверить кодировки")
 
    eq_(s, headers.mime_to_unicode(headers.to_mime('Subject', s)))
 
    s = "this is sample ascii string"
 
    eq_(s, headers.to_mime('Subject',s))
    folded_s = ("This is a long subject with commas, bob, Jay, suzy, tom, over"
                "\n 75,250,234 times!")
    eq_(folded_s, headers.to_mime('Subject', s))