mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use cStringIO where available.
This commit is contained in:
parent
54266fce8d
commit
a617271dbd
8 changed files with 55 additions and 19 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue