Do not in-line complex code unnecessarily.

This commit is contained in:
Eric Snow 2018-01-22 16:03:21 +00:00
parent 73b914c2f6
commit caba7f0566

View file

@ -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))