projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fec1b3e
)
Fix deprecated Element.getchildren() call.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 1 Sep 2011 02:39:12 +0000
(19:39 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 1 Sep 2011 02:39:12 +0000
(19:39 -0700)
pym/portage/xml/metadata.py
patch
|
blob
|
history
diff --git
a/pym/portage/xml/metadata.py
b/pym/portage/xml/metadata.py
index ade2cff818f179e85765de07e406be9312ed6d2d..ef335e29fa3351d7b211650865b3bc0c5f9a279d 100644
(file)
--- 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):