MCPcopy Create free account
hub / github.com/ActiveState/code / characters

Method characters

recipes/Python/298721_xml2obj_II/recipe-298721.py:199–204  ·  view source on GitHub ↗

SAX character data event handler

( self, data )

Source from the content-addressed store, hash-verified

197
198
199 def characters( self, data ):
200 'SAX character data event handler'
201
202 if string.strip( data ):
203 data = data.encode( )
204 self.data += data
205
206
207 def endElement( self, name ):

Callers

nothing calls this directly

Calls 2

stripMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected