summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2007-05-20 11:12:49 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2007-05-20 11:12:49 (GMT)
commitc568cc162acd86c6b65c89246788d9de0b3e3fbc (patch)
tree3b0e4253eb7c4689f1adb91807fa3492db3e09ca /Doc/lib
parentdc48b74497b67a449dd622fdaa7d69e7bff65a5e (diff)
downloadcpython-c568cc162acd86c6b65c89246788d9de0b3e3fbc.zip
cpython-c568cc162acd86c6b65c89246788d9de0b3e3fbc.tar.gz
cpython-c568cc162acd86c6b65c89246788d9de0b3e3fbc.tar.bz2
Fix typo in example (should be backported, but my maintenance branch is woefully out of date)
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libcontextlib.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libcontextlib.tex b/Doc/lib/libcontextlib.tex
index 72bf537..0ac5442 100644
--- a/Doc/lib/libcontextlib.tex
+++ b/Doc/lib/libcontextlib.tex
@@ -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: