Commit bdfd6938 authored by Phillip J. Eby's avatar Phillip J. Eby

Fix some missing imports

parent 35fd1424
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment