fix python method
authorMoritz Warning <moritzwarning@web.de>
Sun, 24 May 2020 21:45:14 +0000 (23:45 +0200)
committerMoritz Warning <moritzwarning@web.de>
Sun, 24 May 2020 21:45:14 +0000 (23:45 +0200)
misc/collect.py

index 9438329f811c46aae352edd578c32a7516734905..8ac6e761ccb371f533b26db274f3ee49dc31155d 100755 (executable)
@@ -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)