Commit f0f6bd63 authored by Georg Brandl's avatar Georg Brandl

#7926: fix-up wording.

parent 2d7911ed
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment