Commit 80b343f0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: file class does not exist in Python 3.

parent 11df0f60
...@@ -166,5 +166,5 @@ class subprocesstransform: ...@@ -166,5 +166,5 @@ class subprocesstransform:
return cache return cache
finally: finally:
if isinstance(stdin_file, file): if hasattr(stdin_file, 'close'):
stdin_file.close() stdin_file.close()
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