projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7455c38
)
xml/metadata: handle py 3.1 cElementTree incompat
author
Zac Medico
<zmedico@gentoo.org>
Sat, 3 Sep 2011 17:09:01 +0000
(10:09 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 3 Sep 2011 17:09:01 +0000
(10:09 -0700)
This will fix bug #381657.
pym/portage/xml/metadata.py
patch
|
blob
|
history
diff --git
a/pym/portage/xml/metadata.py
b/pym/portage/xml/metadata.py
index f4b8f2d3777659c7c12c505454eb03a262b15968..04112cddc1f832a816207b934018af54031ae647 100644
(file)
--- a/
pym/portage/xml/metadata.py
+++ b/
pym/portage/xml/metadata.py
@@
-32,9
+32,10
@@
__all__ = ('MetaDataXML',)
import sys
-if sys.hexversion < 0x2070000:
+if sys.hexversion < 0x2070000 or \
+ (sys.hexversion < 0x3020000 and sys.hexversion >= 0x3000000):
# Our _MetadataTreeBuilder usage is incompatible with
- # cElementTree in Python 2.6:
+ # cElementTree in Python 2.6
, 3.0, and 3.1
:
# File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 644, in findall
# assert self._root is not None
import xml.etree.ElementTree as etree