Beispiel #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
Beispiel #2
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, compat.text_type('&%s;' % n))
                                   for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint
Beispiel #3
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, '&%s;' % n)
                                   for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint
Beispiel #4
0
 def __init__(self, codepoint2name, name2codepoint):
     self.codepoint2entity = dict([(c, "&%s;" % n) for c, n in codepoint2name.items()])
     self.name2codepoint = name2codepoint