Skip to content

Commit d7c3e5f

Browse files
Quentinvstinner
Quentin
authored andcommitted
importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052)
1 parent 5ad36f9 commit d7c3e5f

File tree

2 files changed

+1500
-1500
lines changed

2 files changed

+1500
-1500
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,15 +785,16 @@ class SourceLoader(_LoaderBasics):
785785

786786
def path_mtime(self, path):
787787
"""Optional method that returns the modification time (an int) for the
788-
specified path, where path is a str.
788+
specified path (a str).
789789
790790
Raises OSError when the path cannot be handled.
791791
"""
792792
raise OSError
793793

794794
def path_stats(self, path):
795-
"""Optional method returning a metadata dict for the specified path
796-
to by the path (str).
795+
"""Optional method returning a metadata dict for the specified
796+
path (a str).
797+
797798
Possible keys:
798799
- 'mtime' (mandatory) is the numeric timestamp of last source
799800
code modification;

0 commit comments

Comments
 (0)