Backport rev 55465 by Nick Coghlan.
This commit is contained in:
parent
df73802131
commit
13703087ba
|
@ -111,7 +111,7 @@ And lets you write code like this:
|
|||
\begin{verbatim}
|
||||
from __future__ import with_statement
|
||||
from contextlib import closing
|
||||
import codecs
|
||||
import urllib
|
||||
|
||||
with closing(urllib.urlopen('http://www.python.org')) as page:
|
||||
for line in page:
|
||||
|
|
Loading…
Reference in New Issue