summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-07 23:36:43 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-07 23:36:43 (GMT)
commit1aa642f6bd8e7f6315721201165efa873e77259b (patch)
treec42aa75c38096b648fef5355f6969a388896e0d7 /Lib/inspect.py
parent1c748f383033df1126f2f79f051eee440ba08449 (diff)
parent0f0eac431f6abcc5f6853b26e848b15f848e8844 (diff)
downloadcpython-1aa642f6bd8e7f6315721201165efa873e77259b.zip
cpython-1aa642f6bd8e7f6315721201165efa873e77259b.tar.gz
cpython-1aa642f6bd8e7f6315721201165efa873e77259b.tar.bz2
Issue #27993: Merge plural fixes from 3.5
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 45d2110..72c1691 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)