From 2702e7702442df3f44d8f70d11add746d6b94fd1 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 11 Jul 2007 20:20:13 +0000 Subject: Checkpoint svn path=/scripts/rpki/left_right.py; revision=752 --- scripts/rpki/sax_utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/rpki/sax_utils.py') 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 -- cgit v1.2.3