MCPcopy Create free account
hub / github.com/Distrotech/reportlab / handle_charref

Method handle_charref

tools/pythonpoint/stdparser.py:803–812  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

801 print 'Unknown end tag %s' % tag
802
803 def handle_charref(self, name):
804 try:
805 if name[0]=='x':
806 n = int(name[1:],16)
807 else:
808 n = int(name)
809 except ValueError:
810 self.unknown_charref(name)
811 return
812 self.handle_data(unichr(n).encode('utf8'))

Callers

nothing calls this directly

Calls 3

handle_dataMethod · 0.95
unknown_charrefMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected