revert r69777 since all the experts agree that extra import lines distract from the code

This commit is contained in:
Benjamin Peterson 2009-02-20 03:31:23 +00:00
parent 5149742e8b
commit a7b55a33f8
31 changed files with 42 additions and 96 deletions

View file

@ -473,8 +473,7 @@ statement both starts a database transaction and acquires a thread lock::
Finally, the :func:`closing(object)` function returns *object* so that it can be
bound to a variable, and calls ``object.close`` at the end of the block. ::
import sys
import urllib
import urllib, sys
from contextlib import closing
with closing(urllib.urlopen('http://www.yahoo.com')) as f: