From 721060edff66fa301958f51a0b46ffdcd8c8490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Fri, 3 Jan 2020 18:19:49 +0100 Subject: [PATCH] fix compile definitions --- compile_definitions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile_definitions.py b/compile_definitions.py index e8074c5..01b0465 100644 --- a/compile_definitions.py +++ b/compile_definitions.py @@ -554,6 +554,6 @@ REPLIES_FOR = {\n''') if __name__ == '__main__': compile_definitions() - proc = subprocess.run(['yapf', 'coolamqp/framing/definitions.py'], stdout=subprocess.PIPE) + proc = subprocess.check_output(['yapf', 'coolamqp/framing/definitions.py']) with open('coolamqp/framing/definitions.py', 'wb') as f_out: - f_out.write(proc.stdout) + f_out.write(proc) -- GitLab