mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix typo in example (should be backported, but my maintenance branch is woefully out of date)
This commit is contained in:
parent
dc48b74497
commit
c568cc162a
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ And lets you write code like this:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
import codecs
|
import urllib
|
||||||
|
|
||||||
with closing(urllib.urlopen('http://www.python.org')) as page:
|
with closing(urllib.urlopen('http://www.python.org')) as page:
|
||||||
for line in page:
|
for line in page:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue