Message331739
| Author |
steve.dower |
| Recipients |
danishprakash, paul.moore, pmpp, steve.dower, tim.golden, zach.ware |
| Date |
2018-12-13.03:57:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1544673432.72.0.788709270274.issue35292@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
I have another idea - what if we checked self.extensions_map for overrides but otherwise just called mimetypes.guess_type(path) in the guess_type method? That would be the same behaviour as initializing it lazily, but we don't have to worry about initializing at all, since guess_type() will do it.
I also did a bit of a GitHub search (which I generally criticize, but it's a pretty good way to evaluate whether something is in _common_ use). Mostly it looks like code will be unaffected by this change - people set values in extensions_map, but don't expect to be able to read global values out of it. |
|