summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-12 01:41:09 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-12 01:41:09 -0700
commit5df96179611ce0e98727945b1800b43daccedfc2 (patch)
treee60d86543cf61b8f8fa93858c4068b2305a6769b /pym/portage/__init__.py
parent428053ee44e4a14b3c74dc8e541bcb062b31a799 (diff)
downloadportage-5df96179611ce0e98727945b1800b43daccedfc2.tar.gz
portage-5df96179611ce0e98727945b1800b43daccedfc2.tar.bz2
portage-5df96179611ce0e98727945b1800b43daccedfc2.zip
Remove python-2.6 StringIO.StringIO fallback.
Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 38da8a0b2..5411ec921 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -22,14 +22,6 @@ try:
except ImportError:
from commands import getstatusoutput as subprocess_getstatusoutput
- try:
- from io import StringIO
- except ImportError:
- # Needed for python-2.6 with USE=build since
- # io imports threading which imports thread
- # which is unavailable.
- from StringIO import StringIO
-
import platform
# Temporarily delete these imports, to ensure that only the