[Python-checkins] Cleanup grammar in unittest.mock.seal documentation (#5107)

Andrew Svetlov webhook-mailer at python.org
Sat Jan 6 08:25:42 EST 2018


https://github.com/python/cpython/commit/85ac726a40707ae68a23d568c322868e353217ce
commit: 85ac726a40707ae68a23d568c322868e353217ce
branch: master
author: Paul Ganssle <pganssle at users.noreply.github.com>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2018-01-06T15:25:34+02:00
summary:

Cleanup grammar in unittest.mock.seal documentation (#5107)

files:
M Doc/library/unittest.mock.rst

diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index b6eb8ccb59d..ac9dd3b6f79 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -2370,12 +2370,12 @@ Sealing mocks
 
 .. function:: seal(mock)
 
-    Seal will disable the creation of mock children by preventing to get or set
-    any new attribute on the sealed mock. The sealing process is performed recursively.
+    Seal will disable the creation of mock children by preventing getting or setting
+    of any new attribute on the sealed mock. The sealing process is performed recursively.
 
     If a mock instance is assigned to an attribute instead of being dynamically created
-    it won't be considered in the sealing chain. This allows to prevent seal from fixing
-    part of the mock object.
+    it won't be considered in the sealing chain. This allows one to prevent seal from
+    fixing part of the mock object.
 
         >>> mock = Mock()
         >>> mock.submock.attribute1 = 2



More information about the Python-checkins mailing list