summaryrefslogtreecommitdiff
path: root/python/curl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/curl/__init__.py')
-rw-r--r--python/curl/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/curl/__init__.py b/python/curl/__init__.py
index 5617262..3ab019f 100644
--- a/python/curl/__init__.py
+++ b/python/curl/__init__.py
@@ -10,7 +10,10 @@ import os, sys, urllib, exceptions, mimetools, pycurl
try:
from cStringIO import StringIO
except ImportError:
- from StringIO import StringIO
+ try:
+ from StringIO import StringIO
+ except ImportError:
+ from io import StringIO
try:
import signal