From bdfd69380436bf9360f344a3823b3822cd5d6be7 Mon Sep 17 00:00:00 2001 From: "Phillip J. Eby" Date: Tue, 28 Mar 2006 00:08:22 +0000 Subject: [PATCH] Fix some missing imports --- Doc/lib/libcontextlib.tex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/lib/libcontextlib.tex b/Doc/lib/libcontextlib.tex index 5f12af833cb..842c95492b0 100644 --- a/Doc/lib/libcontextlib.tex +++ b/Doc/lib/libcontextlib.tex @@ -121,7 +121,9 @@ def closing(thing): And lets you write code like this: \begin{verbatim} +from __future__ import with_statement from contextlib import closing +import codecs with closing(codecs.open("foo", encoding="utf8")) as f: for line in f: