mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix typos in comments and docstring (#122720)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
98dba73010
commit
b6c80e21c7
9 changed files with 11 additions and 11 deletions
|
@ -151,7 +151,7 @@ class MimeTypes:
|
|||
def guess_file_type(self, path, *, strict=True):
|
||||
"""Guess the type of a file based on its path.
|
||||
|
||||
Similar to guess_type(), but takes file path istead of URL.
|
||||
Similar to guess_type(), but takes file path instead of URL.
|
||||
"""
|
||||
path = os.fsdecode(path)
|
||||
path = os.path.splitdrive(path)[1]
|
||||
|
@ -325,7 +325,7 @@ def guess_type(url, strict=True):
|
|||
def guess_file_type(path, *, strict=True):
|
||||
"""Guess the type of a file based on its path.
|
||||
|
||||
Similar to guess_type(), but takes file path istead of URL.
|
||||
Similar to guess_type(), but takes file path instead of URL.
|
||||
"""
|
||||
if _db is None:
|
||||
init()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue