Add workaround for http://bugs.python.org/issue14007.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 12 May 2012 16:25:16 +0000 (18:25 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 12 May 2012 16:25:16 +0000 (18:25 +0200)
pym/portage/__init__.py

index 31d580742b5bac7cd0c45dcd459e2f6fe93c370d..6ca0445181e4ea4a17c61362deff203118b9fde6 100644 (file)
@@ -44,6 +44,10 @@ except ImportError as e:
        sys.stderr.write("    "+str(e)+"\n\n");
        raise
 
+if sys.hexversion >= 0x3030000:
+       # Workaround for http://bugs.python.org/issue14007
+       sys.modules["_elementtree"] = None
+
 try:
 
        import portage.proxy.lazyimport