parameters: (self, ref)
docstring: Handle character references as data.
docstring_summary: Handle character references as data.
docstring_tokens: Handle character references as data .
function: def handle_charref(self, ref):
          "Handle character references as data."
          if self.convertEntities in [self.HTML_ENTITIES,
                                      self.XML_ENTITIES]:
              data = unichr(int(ref))
          else:
              data = '&#%s;' % ref
          self.handle_data(data)
function_tokens: def handle_charref ( self , ref ) : if self . convertEntities in [ self . HTML_ENTITIES , self . XML_ENTITIES ] : data = unichr ( int ( ref ) ) else : data = '&#%s;' % ref self . handle_data ( data )