From 507c32a9cb16d881e31843880c1b2e470806e97a Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 23 Apr 2014 16:51:55 +0200 Subject: [PATCH] use '.py' suffix in a temporary file for pylint. otherwise pylint-1.2.0 seems not working. --- product/ERP5Type/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py index b76cd377c2..d246aa5a5d 100644 --- a/product/ERP5Type/Utils.py +++ b/product/ERP5Type/Utils.py @@ -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) -- 2.30.9