From c568cc162acd86c6b65c89246788d9de0b3e3fbc Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 20 May 2007 11:12:49 +0000 Subject: Fix typo in example (should be backported, but my maintenance branch is woefully out of date) --- Doc/lib/libcontextlib.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12