Fix some missing imports

This commit is contained in:
Phillip J. Eby 2006-03-28 00:08:22 +00:00
parent 35fd142435
commit bdfd693804
1 changed files with 2 additions and 0 deletions

View File

@ -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: