Move the mimetypes import to the function.
authorAlberto Bertogli <albertogli@telpin.com.ar>
local dateSat, 24 Dec 2005 15:06:57
dateSat, 24 Dec 2005 15:06:57
hash20051224150657-d5d94-68940d1ea51154185066930159edf33adf434a5a.gz
Move the mimetypes import to the function.

While it's a nice practise to put all imports above, in darcsweb's case it
also increases startup latency.

Because the mimetypes module is only used inside print_binary_header(), move
the import inside the function.
1 file(s) changed:
darcsweb.cgi +1 -1