Fix typos in comments and docstring (#122720)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Xie Yanbo 2024-08-07 14:39:16 +08:00 committed by GitHub
parent 98dba73010
commit b6c80e21c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 11 deletions

View file

@ -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()