From 065bc72a85668c53ac4d606c8a5e2b598a1bae3b Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 24 May 2020 23:45:14 +0200 Subject: [PATCH] fix python method --- misc/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/collect.py b/misc/collect.py index 9438329..8ac6e76 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -36,7 +36,7 @@ for path in args.input_path: for file in Path(path).rglob('*.json'): paths.append(file) else: - if not path.ends_with('.json'): + if not path.endswith('.json'): sys.stderr.write("Folder does not exists: {}\n".format(path)) exit(1) paths.append(path) -- 2.30.2