[scripts/init] fix extra blank line without copyright

1686f32a0d (commitcomment-162021403)
This commit is contained in:
Mike Fährmann
2025-07-13 22:38:19 +02:00
parent 089f815560
commit df946faf40

View File

@@ -71,11 +71,10 @@ def create_extractor_module(opts=NONE):
with open(path, opts["open_mode"], encoding="utf-8") as fp:
if copyright := opts.get("copyright", ""):
copyright = f"# Copyright {dt.date.today().year} {copyright}\n#"
copyright = f"\n# Copyright {dt.date.today().year} {copyright}\n#"
fp.write(f'''\
{ENCODING}
{copyright}
{ENCODING}{copyright}
{LICENSE}
"""Extractors for {opts["root"]}/"""