Kaydet (Commit) bdfd6938 authored tarafından Phillip J. Eby's avatar Phillip J. Eby

Fix some missing imports

üst 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