From b5b39ce793c496fe24ea0bc90178318c945fb2f7 Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Fri, 20 Nov 2020 16:57:21 +0100 Subject: [PATCH] Fix tree-sitter-language update script --- check-submodule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-submodule.py b/check-submodule.py index 0ed4663ba..521487e82 100755 --- a/check-submodule.py +++ b/check-submodule.py @@ -171,8 +171,8 @@ def save_diff_files( old_dir: pathlib.Path, new_dir: pathlib.Path, compare_dir: pathlib.Path ) -> None: # Get all metric files in old and new directories - old_paths = pathlib.Path(old_dir).glob("**/*.json") - new_paths = pathlib.Path(new_dir).glob("**/*.json") + old_paths = sorted(pathlib.Path(old_dir).glob("*.json")) + new_paths = sorted(pathlib.Path(new_dir).glob("*.json")) # Save the differences between json files in the chosen dir for old_filename, new_filename in zip(old_paths, new_paths):