mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Remove self from the arguments for the function add_type().
Backport candidate.
This commit is contained in:
parent
4a264fb054
commit
893020b59b
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ def guess_extension(type, strict=True):
|
||||||
init()
|
init()
|
||||||
return guess_extension(type, strict)
|
return guess_extension(type, strict)
|
||||||
|
|
||||||
def add_type(self, type, ext, strict=True):
|
def add_type(type, ext, strict=True):
|
||||||
"""Add a mapping between a type and an extension.
|
"""Add a mapping between a type and an extension.
|
||||||
|
|
||||||
When the extension is already known, the new
|
When the extension is already known, the new
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue