]> granicus.if.org Git - python/commitdiff
Backport rev 55465 by Nick Coghlan.
authorGeorg Brandl <georg@python.org>
Sun, 20 May 2007 15:03:06 +0000 (15:03 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 20 May 2007 15:03:06 +0000 (15:03 +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: