Commit 507c32a9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use '.py' suffix in a temporary file for pylint.

otherwise pylint-1.2.0 seems not working.
parent f218562f
......@@ -470,7 +470,7 @@ def checkPythonSourceCode(source_code_str):
sys.stderr = cStringIO.StringIO()
sys.stdout = cStringIO.StringIO()
with tempfile.NamedTemporaryFile() as input_file:
with tempfile.NamedTemporaryFile(suffix='.py') as input_file:
input_file.write(source_code_str)
input_file.seek(0)
......
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