1 |
commit: 6b8855016820fb84bac25720d99bf8e42c9e9469 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 02:39:12 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 02:39:12 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6b885501 |
7 |
|
8 |
Fix deprecated Element.getchildren() call. |
9 |
|
10 |
--- |
11 |
pym/portage/xml/metadata.py | 3 +-- |
12 |
1 files changed, 1 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py |
15 |
index ade2cff..ef335e2 100644 |
16 |
--- a/pym/portage/xml/metadata.py |
17 |
+++ b/pym/portage/xml/metadata.py |
18 |
@@ -63,8 +63,7 @@ class _Maintainer(object): |
19 |
self.description = None |
20 |
self.restrict = node.get('restrict') |
21 |
self.status = node.get('status') |
22 |
- maint_attrs = node.getchildren() |
23 |
- for attr in maint_attrs: |
24 |
+ for attr in node: |
25 |
setattr(self, attr.tag, attr.text) |
26 |
|
27 |
def __repr__(self): |