summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index fb40ed3..cf849e8 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -40,7 +40,10 @@ import urllib
import mimetools
import rfc822
import UserDict
-from StringIO import StringIO
+try:
+ from cStringIO import StringIO
+except ImportError:
+ from StringIO import StringIO
__all__ = ["MiniFieldStorage", "FieldStorage", "FormContentDict",
"SvFormContentDict", "InterpFormContentDict", "FormContent",