diff options
Diffstat (limited to 'scripts/rpki/sax_utils.py')
-rw-r--r-- | scripts/rpki/sax_utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/rpki/sax_utils.py b/scripts/rpki/sax_utils.py index b4259d2a..6497699a 100644 --- a/scripts/rpki/sax_utils.py +++ b/scripts/rpki/sax_utils.py @@ -36,3 +36,12 @@ class handler(xml.sax.handler.ContentHandler): def characters(self, content): self.text += content + + def get_text(self): + val = self.text + self.text = "" + return val + + def set_obj(self, obj): + assert self.obj is None + self.obj = obj |