From: Moritz Warning Date: Sun, 24 May 2020 21:45:14 +0000 (+0200) Subject: fix python method X-Git-Tag: v2.2.1~21 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=065bc72a85668c53ac4d606c8a5e2b598a1bae3b;p=web%2Ffirmware-selector-openwrt-org.git fix python method --- 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)