summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-07 11:04:41 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-07 11:04:41 (GMT)
commit0f0eac431f6abcc5f6853b26e848b15f848e8844 (patch)
tree3d671943461614610c236e3d3e8b3cfc98a2d18d /Lib/inspect.py
parent0be894b2f6ca17204922399d6982f0b8a9dc59a1 (diff)
downloadcpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.zip
cpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.tar.gz
cpython-0f0eac431f6abcc5f6853b26e848b15f848e8844.tar.bz2
Issue #27993: Fix problems with plural objects in docs and comments
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index e830eb6..ca1d551 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -171,9 +171,8 @@ def isfunction(object):
def isgeneratorfunction(object):
"""Return true if the object is a user-defined generator function.
- Generator function objects provides same attributes as functions.
-
- See help(isfunction) for attributes listing."""
+ Generator function objects provide the same attributes as functions.
+ See help(isfunction) for a list of attributes."""
return bool((isfunction(object) or ismethod(object)) and
object.__code__.co_flags & CO_GENERATOR)