mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Use cStringIO where available.
This commit is contained in:
parent
54266fce8d
commit
a617271dbd
8 changed files with 55 additions and 19 deletions
|
|
@ -17,7 +17,10 @@ import urllib
|
|||
import cgi
|
||||
import shutil
|
||||
import mimetypes
|
||||
from StringIO import StringIO
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
except ImportError:
|
||||
from StringIO import StringIO
|
||||
|
||||
|
||||
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue