From 6b8855016820fb84bac25720d99bf8e42c9e9469 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 31 Aug 2011 19:39:12 -0700 Subject: [PATCH] Fix deprecated Element.getchildren() call. --- pym/portage/xml/metadata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py index ade2cff81..ef335e29f 100644 --- a/pym/portage/xml/metadata.py +++ b/pym/portage/xml/metadata.py @@ -63,8 +63,7 @@ class _Maintainer(object): self.description = None self.restrict = node.get('restrict') self.status = node.get('status') - maint_attrs = node.getchildren() - for attr in maint_attrs: + for attr in node: setattr(self, attr.tag, attr.text) def __repr__(self): -- 2.26.2