From caba7f0566dd96e11f8a0bbc700aaee455fae5bd Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 22 Jan 2018 16:03:21 +0000 Subject: [PATCH] Do not in-line complex code unnecessarily. --- debugger_protocol/schema/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger_protocol/schema/__main__.py b/debugger_protocol/schema/__main__.py index 40c675a0..e0b3b111 100644 --- a/debugger_protocol/schema/__main__.py +++ b/debugger_protocol/schema/__main__.py @@ -30,11 +30,11 @@ def handle_download(source=UPSTREAM, target=VENDORED, *, # Save the metadata. print('saving the schema metadata...') + formatted = meta.format() metafile, filename = open_metadata(target, 'w', _open=_open) with metafile: - metafile.write( - meta.format()) + metafile.write(formatted) print('...metadata written to {}.'.format(filename))