Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1917

Show
Ignore:
Timestamp:
03/14/08 10:11:11
Author:
fumanchu
Message:

Moved mimetools to only import if needed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/static.py

    r1753 r1917  
    1 import mimetools 
    21import mimetypes 
    32mimetypes.init() 
     
    9493                # Return a multipart/byteranges response. 
    9594                response.status = "206 Partial Content" 
     95                import mimetools 
    9696                boundary = mimetools.choose_boundary() 
    9797                ct = "multipart/byteranges; boundary=%s" % boundary 

Hosted by WebFaction

Log in as guest/cpguest to create tickets