diff options
Diffstat (limited to 'scripts/copyright_checking.py')
-rw-r--r-- | scripts/copyright_checking.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/copyright_checking.py b/scripts/copyright_checking.py index 06e19742..82099b22 100644 --- a/scripts/copyright_checking.py +++ b/scripts/copyright_checking.py @@ -57,11 +57,10 @@ copyright_text_script = """# Copyright (C) 2021 Saturneric <[email protected]> """ def check_copright_by_path(path, copyright_text, suffix): - for root, dirs, files in os.walk(path): + for root, _, files in os.walk(path): for file in files: - if file.endswith(suffix): + if file.endswith(suffix): file_path = os.path.join(root, file) - with open(file_path, 'r', encoding='utf-8') as f: content = f.read() |