Commit 5f054540 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthenaCommon: Py3 fix for ChapPy

`builtins.file` is not available in Py3 and does not need an import in
Py2.
parent 4d389b16
......@@ -32,7 +32,6 @@ def dump( buf, stdout = sys.stdout ):
fname = None
if isinstance(buf, str):
fname = buf
from builtins import file
if six.PY3:
import io
file = io.IOBase # noqa: F811
......
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