diff options
author | mesonium <mesonium@posteo.eu> | 2023-01-06 23:11:03 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-01-07 15:34:48 +0300 |
commit | 2a43353ca247f1250edffc01dd124d6c4c8c3ea1 (patch) | |
tree | 1f091be941a6de92e430a37132d067c2660200cf /scripts | |
parent | cbecf724ccaf33972036bae9ac5e41acd20510eb (diff) |
cq: Cleanup unused local variables
- Remove never used variables
- Try to incorporate declared but not used variable where it seemed to be in the author's original intention
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get_iana_data.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/get_iana_data.py b/scripts/get_iana_data.py index f576ccb26..d7e74cc95 100755 --- a/scripts/get_iana_data.py +++ b/scripts/get_iana_data.py @@ -40,7 +40,7 @@ def parse_uri_schemes(content: str) -> list[str]: def generate_output(schemes: list[str], - out_path: Path): + outpath: Path) -> None: logging.info('Generate output') current_date = datetime.utcnow().isoformat() @@ -68,6 +68,5 @@ if __name__ == '__main__': scheme_content = download_file(SCHEMES_URL) schemes = parse_uri_schemes(scheme_content) - output = generate_output(schemes, - outpath) + generate_output(schemes, outpath) logging.info('Finished !') |