chore(python): remove years range from relicense script [no changelog]
What changed, and why it matters
This commit is a routine maintenance change to an internal helper script. It removes the automatic insertion of the current year from a copyright notice template, so the notice now simply reads 'Copyright (C) SatoshiLabs and contributors' instead of 'Copyright (C) 2012-<current year> SatoshiLabs and contributors'. There is no change to any firmware, wallet, cryptographic, or user-facing code.
No security action required. This is a non-functional tooling change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies python/helper-scripts/relicence.py, a script used to apply a standard license header to source files. The change removes the import of datetime.date, removes the {year} placeholder from LICENSE_NOTICE, and removes the .format(year=date.today().year) call. The resulting license header is static and no longer includes a year range. This is purely a tooling/copyright-formatting change.
Changed components
python/helper-scripts/relicence.pyInspect captured patch +2 / −5
diff --git a/python/helper-scripts/relicence.py b/python/helper-scripts/relicence.py
index 2de2febc0..3c0996aff 100755
--- a/python/helper-scripts/relicence.py
+++ b/python/helper-scripts/relicence.py
@@ -19,13 +19,12 @@
import glob
import os
import sys
-from datetime import date
from typing import List, TextIO
LICENSE_NOTICE = """\
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-{year} SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -39,9 +38,7 @@ LICENSE_NOTICE = """\
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
-""".format(
- year=date.today().year
-)
+"""
SHEBANG_HEADER = """\
#!/usr/bin/env python3
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.