diff options
author | Rob Austein <sra@hactrn.net> | 2007-07-11 20:20:13 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-07-11 20:20:13 +0000 |
commit | 2702e7702442df3f44d8f70d11add746d6b94fd1 (patch) | |
tree | 273767c37b6d3a506f21a9303c46fcd9d4af9c1c /scripts/rpki/sax_utils.py | |
parent | 290374ca89c59d1f92290bf70cfd8715896d990e (diff) |
Checkpoint
svn path=/scripts/rpki/left_right.py; revision=752
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 |