diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-06-03 08:34:34 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-06-03 08:34:34 +0200 |
commit | f75fed63cb0256505d684ce524d65c9086af0879 (patch) | |
tree | d21d4f686f725c3aed29d7190de89ef7bab6e0e8 | |
parent | 74dbce53d3f44fc0065ddac6a640f15ff369a89f (diff) | |
download | portage-f75fed63cb0256505d684ce524d65c9086af0879.tar.gz portage-f75fed63cb0256505d684ce524d65c9086af0879.tar.bz2 portage-f75fed63cb0256505d684ce524d65c9086af0879.zip |
Delete workaround for http://bugs.python.org/issue14007.
-rw-r--r-- | pym/portage/__init__.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 56af9e48f..84cac7411 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -335,16 +335,6 @@ _python_interpreter = os.path.realpath(sys.executable) _bin_path = PORTAGE_BIN_PATH _pym_path = PORTAGE_PYM_PATH -if sys.hexversion >= 0x3030000: - # Workaround for http://bugs.python.org/issue14007 - def _test_xml_etree_ElementTree_TreeBuilder_type(): - import subprocess - p = subprocess.Popen([_python_interpreter, "-c", - "import sys, xml.etree.ElementTree; sys.exit(not isinstance(xml.etree.ElementTree.TreeBuilder, type))"]) - if p.wait() != 0: - sys.modules["_elementtree"] = None - _test_xml_etree_ElementTree_TreeBuilder_type() - def _shell_quote(s): """ Quote a string in double-quotes and use backslashes to |