From 73e071ba6eed1d9f595cb639b038f357cae7db82 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 19 Aug 2009 23:18:09 +0000 Subject: Don't accidently convert handles to integers. svn path=/rpkid/rpki/xml_utils.py; revision=2691 --- rpkid/rpki/xml_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpkid/rpki/xml_utils.py') diff --git a/rpkid/rpki/xml_utils.py b/rpkid/rpki/xml_utils.py index 20b40b16..fcf595ef 100644 --- a/rpkid/rpki/xml_utils.py +++ b/rpkid/rpki/xml_utils.py @@ -169,7 +169,7 @@ class base_elt(object): """ for key in self.attributes: val = attrs.get(key, None) - if isinstance(val, str) and val.isdigit(): + if isinstance(val, str) and val.isdigit() and not key.endswith("_handle"): val = long(val) setattr(self, key, val) for key in self.booleans: -- cgit v1.2.3