Skip to content

Instantly share code, notes, and snippets.

View danielsomerfield's full-sized avatar

Daniel Somerfield danielsomerfield

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

import xml.sax
class Handler(xml.sax.ContentHandler):
def __init__(self):
super().__init__()
self.current_id = 0
self.stack = []