Fix deprecated Element.getchildren() call.
authorZac Medico <zmedico@gentoo.org>
Thu, 1 Sep 2011 02:39:12 +0000 (19:39 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 1 Sep 2011 02:39:12 +0000 (19:39 -0700)
pym/portage/xml/metadata.py

index ade2cff818f179e85765de07e406be9312ed6d2d..ef335e29fa3351d7b211650865b3bc0c5f9a279d 100644 (file)
@@ -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):