]> granicus.if.org Git - python/commitdiff
Fix typo in example (should be backported, but my maintenance branch is woefully...
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 20 May 2007 11:12:49 +0000 (11:12 +0000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 20 May 2007 11:12:49 +0000 (11:12 +0000)
Doc/lib/libcontextlib.tex

index 72bf53716aa6c27c9a5bff0698526149656fc61f..0ac54425a5f666df399300bae4ef6141b4aa9ac4 100644 (file)
@@ -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: