]> granicus.if.org Git - python/commitdiff
#7926: fix-up wording.
authorGeorg Brandl <georg@python.org>
Sun, 14 Feb 2010 13:38:12 +0000 (13:38 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 14 Feb 2010 13:38:12 +0000 (13:38 +0000)
Doc/whatsnew/2.6.rst

index 8bfbbab2cc7c3b56421b7ad7a3b5e15129c5e6cb..c6f7c2da471d9be3a9d9e1a7ca96f17ab192e4cd 100644 (file)
@@ -470,7 +470,8 @@ statement both starts a database transaction and acquires a thread lock::
        ...
 
 Finally, the :func:`closing` function returns its argument so that it can be
-bound to a variable, and calls ``object.close`` at the end of the block. ::
+bound to a variable, and calls the argument's ``.close()`` method at the end
+of the block. ::
 
    import urllib, sys
    from contextlib import closing