aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index bcd91893b5f..0dd32f3bff9 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -37,10 +37,7 @@ if _os.name == 'mac':
import Carbon.Folder as _Folder
import Carbon.Folders as _Folders
-try:
- from cStringIO import StringIO as _StringIO
-except:
- from StringIO import StringIO as _StringIO
+from io import StringIO as _StringIO
try:
import fcntl as _fcntl