fix a silly problem of caching gone wrong #5401
This commit is contained in:
parent
3bac8b20b5
commit
ad58b7c9da
|
@ -237,6 +237,7 @@ def guess_type(url, strict=True):
|
||||||
Optional `strict' argument when false adds a bunch of commonly found, but
|
Optional `strict' argument when false adds a bunch of commonly found, but
|
||||||
non-standard types.
|
non-standard types.
|
||||||
"""
|
"""
|
||||||
|
if not inited:
|
||||||
init()
|
init()
|
||||||
return guess_type(url, strict)
|
return guess_type(url, strict)
|
||||||
|
|
||||||
|
@ -254,6 +255,7 @@ def guess_all_extensions(type, strict=True):
|
||||||
Optional `strict' argument when false adds a bunch of commonly found,
|
Optional `strict' argument when false adds a bunch of commonly found,
|
||||||
but non-standard types.
|
but non-standard types.
|
||||||
"""
|
"""
|
||||||
|
if not inited:
|
||||||
init()
|
init()
|
||||||
return guess_all_extensions(type, strict)
|
return guess_all_extensions(type, strict)
|
||||||
|
|
||||||
|
@ -269,6 +271,7 @@ def guess_extension(type, strict=True):
|
||||||
Optional `strict' argument when false adds a bunch of commonly found,
|
Optional `strict' argument when false adds a bunch of commonly found,
|
||||||
but non-standard types.
|
but non-standard types.
|
||||||
"""
|
"""
|
||||||
|
if not inited:
|
||||||
init()
|
init()
|
||||||
return guess_extension(type, strict)
|
return guess_extension(type, strict)
|
||||||
|
|
||||||
|
@ -284,6 +287,7 @@ def add_type(type, ext, strict=True):
|
||||||
list of standard types, else to the list of non-standard
|
list of standard types, else to the list of non-standard
|
||||||
types.
|
types.
|
||||||
"""
|
"""
|
||||||
|
if not inited:
|
||||||
init()
|
init()
|
||||||
return add_type(type, ext, strict)
|
return add_type(type, ext, strict)
|
||||||
|
|
||||||
|
|
|
@ -166,6 +166,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5401: Fixed a performance problem in mimetypes when ``from mimetypes
|
||||||
|
import guess_extension`` was used.
|
||||||
|
|
||||||
- Issue #1733986: Fixed mmap crash in accessing elements of second map object
|
- Issue #1733986: Fixed mmap crash in accessing elements of second map object
|
||||||
with same tagname but larger size than first map. (Windows)
|
with same tagname but larger size than first map. (Windows)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue