From a140978b50325640763560fce077634744408e4d Mon Sep 17 00:00:00 2001 From: Amit Date: Fri, 11 Jan 2019 14:36:28 +0530 Subject: [PATCH] filehandling file closing --- code/manifest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/manifest.py b/code/manifest.py index 6a095ef..bca5a86 100644 --- a/code/manifest.py +++ b/code/manifest.py @@ -48,6 +48,7 @@ def create_manifest(data_dir,manifest_path): with codecs.open(manifest_path, 'w', 'utf-8') as fout: for line in json_lines: fout.write(line + '\n') + fout.close() def main(): if args.target_dir.startswith('~'):