summaryrefslogtreecommitdiffstats
path: root/Lib
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
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')
-rw-r--r--Lib/inspect.py5
-rw-r--r--Lib/test/test_json/test_decode.py2
2 files changed, 3 insertions, 4 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)
diff --git a/Lib/test/test_json/test_decode.py b/Lib/test/test_json/test_decode.py
index cc83b45..fdafeb6 100644
--- a/Lib/test/test_json/test_decode.py
+++ b/Lib/test/test_json/test_decode.py
@@ -35,7 +35,7 @@ class TestDecode:
self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
object_hook=lambda x: None),
OrderedDict(p))
- # check that empty objects literals work (see #17368)
+ # check that empty object literals work (see #17368)
self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
OrderedDict())
self.assertEqual(self.loads('{"empty": {}}',