mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
fix docstring wording
This commit is contained in:
parent
522267e784
commit
688a551ca0
2 changed files with 2637 additions and 2636 deletions
|
@ -731,7 +731,7 @@ class FrozenImporter:
|
||||||
@classmethod
|
@classmethod
|
||||||
@_requires_frozen
|
@_requires_frozen
|
||||||
def is_package(cls, fullname):
|
def is_package(cls, fullname):
|
||||||
"""Return if the frozen module is a package."""
|
"""Return True if the frozen module is a package."""
|
||||||
return _imp.is_frozen_package(fullname)
|
return _imp.is_frozen_package(fullname)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1025,7 +1025,7 @@ class SourceFileLoader(FileLoader, SourceLoader):
|
||||||
"""Concrete implementation of SourceLoader using the file system."""
|
"""Concrete implementation of SourceLoader using the file system."""
|
||||||
|
|
||||||
def path_stats(self, path):
|
def path_stats(self, path):
|
||||||
"""Return the metadat for the path."""
|
"""Return the metadata for the path."""
|
||||||
st = _os.stat(path)
|
st = _os.stat(path)
|
||||||
return {'mtime': st.st_mtime, 'size': st.st_size}
|
return {'mtime': st.st_mtime, 'size': st.st_size}
|
||||||
|
|
||||||
|
@ -1117,7 +1117,7 @@ class ExtensionFileLoader:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def is_package(self, fullname):
|
def is_package(self, fullname):
|
||||||
"""Return if the extension module is a package."""
|
"""Return True if the extension module is a package."""
|
||||||
file_name = _path_split(self.path)[1]
|
file_name = _path_split(self.path)[1]
|
||||||
return any(file_name == '__init__' + suffix
|
return any(file_name == '__init__' + suffix
|
||||||
for suffix in EXTENSION_SUFFIXES)
|
for suffix in EXTENSION_SUFFIXES)
|
||||||
|
|
5267
Python/importlib.h
5267
Python/importlib.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue