diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-09-08 05:39:59 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-09-08 05:39:59 +0000 |
commit | ba5480b6565e00b4672ed276770623faa1312877 (patch) | |
tree | 6a9201923ab6753e54fb60b6edbdb454e4486d61 /Lib | |
parent | 440bbd0e388ee516bf93be0f96ea7de7fafc4f32 (diff) | |
download | cpython-git-ba5480b6565e00b4672ed276770623faa1312877.tar.gz |
Issue #27993: Fix problems with the plural “objects” in docs and comments
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/inspect.py | 5 | ||||
-rw-r--r-- | Lib/json/tests/test_decode.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index b08e145f07..6d645bd046 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -155,9 +155,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.func_code.co_flags & CO_GENERATOR) diff --git a/Lib/json/tests/test_decode.py b/Lib/json/tests/test_decode.py index 78d7fbb7c6..0014546b82 100644 --- a/Lib/json/tests/test_decode.py +++ b/Lib/json/tests/test_decode.py @@ -43,7 +43,7 @@ class TestDecode(object): 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": {}}', |