예제 #1
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict(
         [
             (c, compat.text_type("&%s;" % n))
             for c, n in codepoint2name.items()
         ]
     )
     self.name2codepoint = name2codepoint
예제 #2
0
파일: filters.py 프로젝트: marcosptf/fedora
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, compat.text_type('&%s;' % n))
                                   for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint
예제 #3
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, '&%s;' % n)
                                   for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint
예제 #4
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, "&%s;" % n) for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint