From: Zac Medico Date: Thu, 1 Sep 2011 02:39:12 +0000 (-0700) Subject: Fix deprecated Element.getchildren() call. X-Git-Tag: v2.2.0_alpha52~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b8855016820fb84bac25720d99bf8e42c9e9469;p=portage.git Fix deprecated Element.getchildren() call. --- 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):