mirror of
https://github.com/python/cpython.git
synced 2025-08-11 12:29:34 +00:00
Merged revisions 70086 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70086 | benjamin.peterson | 2009-03-01 21:35:12 -0600 (Sun, 01 Mar 2009) | 1 line fix a silly problem of caching gone wrong #5401 ........
This commit is contained in:
parent
4a9fda4280
commit
e392b4ff11
2 changed files with 11 additions and 4 deletions
|
@ -237,7 +237,8 @@ def guess_type(url, strict=True):
|
|||
Optional `strict' argument when false adds a bunch of commonly found, but
|
||||
non-standard types.
|
||||
"""
|
||||
init()
|
||||
if not inited:
|
||||
init()
|
||||
return guess_type(url, strict)
|
||||
|
||||
|
||||
|
@ -254,7 +255,8 @@ def guess_all_extensions(type, strict=True):
|
|||
Optional `strict' argument when false adds a bunch of commonly found,
|
||||
but non-standard types.
|
||||
"""
|
||||
init()
|
||||
if not inited:
|
||||
init()
|
||||
return guess_all_extensions(type, strict)
|
||||
|
||||
def guess_extension(type, strict=True):
|
||||
|
@ -269,7 +271,8 @@ def guess_extension(type, strict=True):
|
|||
Optional `strict' argument when false adds a bunch of commonly found,
|
||||
but non-standard types.
|
||||
"""
|
||||
init()
|
||||
if not inited:
|
||||
init()
|
||||
return guess_extension(type, strict)
|
||||
|
||||
def add_type(type, ext, strict=True):
|
||||
|
@ -284,7 +287,8 @@ def add_type(type, ext, strict=True):
|
|||
list of standard types, else to the list of non-standard
|
||||
types.
|
||||
"""
|
||||
init()
|
||||
if not inited:
|
||||
init()
|
||||
return add_type(type, ext, strict)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue