[scripts/init] fix extra blank line without copyright
1686f32a0d (commitcomment-162021403)
This commit is contained in:
@@ -71,11 +71,10 @@ def create_extractor_module(opts=NONE):
|
|||||||
|
|
||||||
with open(path, opts["open_mode"], encoding="utf-8") as fp:
|
with open(path, opts["open_mode"], encoding="utf-8") as fp:
|
||||||
if copyright := opts.get("copyright", ""):
|
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'''\
|
fp.write(f'''\
|
||||||
{ENCODING}
|
{ENCODING}{copyright}
|
||||||
{copyright}
|
|
||||||
{LICENSE}
|
{LICENSE}
|
||||||
"""Extractors for {opts["root"]}/"""
|
"""Extractors for {opts["root"]}/"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user