]> granicus.if.org Git - python/commitdiff
Cleanup grammar in unittest.mock.seal documentation (#5107)
authorPaul Ganssle <pganssle@users.noreply.github.com>
Sat, 6 Jan 2018 13:25:34 +0000 (08:25 -0500)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 6 Jan 2018 13:25:34 +0000 (15:25 +0200)
Doc/library/unittest.mock.rst

index b6eb8ccb59dad6ed36e779380d7fd5875d39ef18..ac9dd3b6f793a2406aca37abb5469a878b7ccc90 100644 (file)
@@ -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