[Python-checkins] cpython: fix docstring wording
philip.jenvey
python-checkins at python.org
Sat Aug 11 01:53:28 CEST 2012
http://hg.python.org/cpython/rev/f7b59e890e30
changeset: 78491:f7b59e890e30
user: Philip Jenvey <pjenvey at underboss.org>
date: Fri Aug 10 16:21:35 2012 -0700
summary:
fix docstring wording
files:
Lib/importlib/_bootstrap.py | 6 +-
Python/importlib.h | 5265 +++++++++++-----------
2 files changed, 2636 insertions(+), 2635 deletions(-)
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -731,7 +731,7 @@
@classmethod
@_requires_frozen
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)
@@ -1025,7 +1025,7 @@
"""Concrete implementation of SourceLoader using the file system."""
def path_stats(self, path):
- """Return the metadat for the path."""
+ """Return the metadata for the path."""
st = _os.stat(path)
return {'mtime': st.st_mtime, 'size': st.st_size}
@@ -1117,7 +1117,7 @@
raise
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]
return any(file_name == '__init__' + suffix
for suffix in EXTENSION_SUFFIXES)
diff --git a/Python/importlib.h b/Python/importlib.h
--- a/Python/importlib.h
+++ b/Python/importlib.h
[stripped]
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list