Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 688a551

Browse files
committed
fix docstring wording
1 parent 522267e commit 688a551

2 files changed

Lines changed: 2616 additions & 2615 deletions

File tree

Lib/importlib/_bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def get_source(cls, fullname):
731731
@classmethod
732732
@_requires_frozen
733733
def is_package(cls, fullname):
734-
"""Return if the frozen module is a package."""
734+
"""Return True if the frozen module is a package."""
735735
return _imp.is_frozen_package(fullname)
736736

737737

@@ -1025,7 +1025,7 @@ class SourceFileLoader(FileLoader, SourceLoader):
10251025
"""Concrete implementation of SourceLoader using the file system."""
10261026

10271027
def path_stats(self, path):
1028-
"""Return the metadat for the path."""
1028+
"""Return the metadata for the path."""
10291029
st = _os.stat(path)
10301030
return {'mtime': st.st_mtime, 'size': st.st_size}
10311031

@@ -1117,7 +1117,7 @@ def load_module(self, fullname):
11171117
raise
11181118

11191119
def is_package(self, fullname):
1120-
"""Return if the extension module is a package."""
1120+
"""Return True if the extension module is a package."""
11211121
file_name = _path_split(self.path)[1]
11221122
return any(file_name == '__init__' + suffix
11231123
for suffix in EXTENSION_SUFFIXES)

0 commit comments

Comments
 (0)