What changed, and why it matters
This commit only removes blank lines between import blocks in eight Python files. It is a code-formatting cleanup with no functional changes and no security relevance.
No action needed; this is a non-functional style-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff consists entirely of deleting single blank lines that previously separated the import section from the rest of the module. No imports, logic, constants, or behavior were changed. This is consistent with a follow-up to a ‘black’ code-formatter update.
Changed components
Inspect captured patch +0 / −8
diff --git a/src/krux/kef.py b/src/krux/kef.py
index 42aab1a..d91f0ae 100644
--- a/src/krux/kef.py
+++ b/src/krux/kef.py
@@ -23,7 +23,6 @@
import ucryptolib
import uhashlib_hw
-
# KEF: AES, MODEs VERSIONS, MODE_NUMBERS, and MODE_IVS are defined here
# to disable a MODE: set its value to None
# to disable a VERSION: set its value to None
diff --git a/src/krux/pages/home_pages/sign_message_ui.py b/src/krux/pages/home_pages/sign_message_ui.py
index 5955591..28e0374 100644
--- a/src/krux/pages/home_pages/sign_message_ui.py
+++ b/src/krux/pages/home_pages/sign_message_ui.py
@@ -45,7 +45,6 @@ from ...sd_card import (
from ...settings import TEST_TXT, MAIN_TXT
from ...kboard import kboard
-
SD_MESSAGE_HEADER = "-----BEGIN BITCOIN SIGNED MESSAGE-----"
SD_SIGNATURE_HEADER = "-----BEGIN BITCOIN SIGNATURE-----"
SD_SIGNATURE_FOOTER = "-----END BITCOIN SIGNATURE-----"
diff --git a/src/krux/pages/login.py b/src/krux/pages/login.py
index 82e32cf..1112f3d 100644
--- a/src/krux/pages/login.py
+++ b/src/krux/pages/login.py
@@ -50,7 +50,6 @@ from ..key import (
from ..krux_settings import t
from ..kboard import kboard
-
DIGITS_HEX = "0123456789ABCDEF"
DIGITS_OCT = "01234567"
diff --git a/src/krux/pages/mnemonic_loader.py b/src/krux/pages/mnemonic_loader.py
index a0c09b8..366b5af 100644
--- a/src/krux/pages/mnemonic_loader.py
+++ b/src/krux/pages/mnemonic_loader.py
@@ -38,7 +38,6 @@ from ..qr import FORMAT_UR
from ..key import Key
from ..krux_settings import t
-
DIGITS_HEX = "0123456789ABCDEF"
DIGITS_OCT = "01234567"
diff --git a/src/krux/pages/tools.py b/src/krux/pages/tools.py
index 4e4c650..635fe07 100644
--- a/src/krux/pages/tools.py
+++ b/src/krux/pages/tools.py
@@ -33,7 +33,6 @@ from . import (
)
from ..krux_settings import t
-
# TODO: re-enable "Create a QR Code" (and keypads ^^^) once encryption is possible w/o Datum Tool
diff --git a/tests/pages/test_encryption_ui.py b/tests/pages/test_encryption_ui.py
index 17f5cca..bb4edb8 100644
--- a/tests/pages/test_encryption_ui.py
+++ b/tests/pages/test_encryption_ui.py
@@ -2,7 +2,6 @@ import pytest
from unittest.mock import patch
from . import create_ctx
-
TEST_KEY = "test key"
CBC_WORDS = "dog guitar hotel random owner gadget salute riot patrol work advice panic erode leader pass cross section laundry elder asset soul scale immune scatter"
ECB_WORDS = "brass creek fuel snack era success impulse dirt caution purity lottery lizard boil festival neither case swift smooth range mail gravity sample never ivory"
diff --git a/tests/pages/test_tools.py b/tests/pages/test_tools.py
index c7d7edf..9a62c01 100644
--- a/tests/pages/test_tools.py
+++ b/tests/pages/test_tools.py
@@ -2,7 +2,6 @@ import pytest
from unittest.mock import patch
from . import create_ctx
-
SEEDS_JSON = """{
"ecbID": {
"version": 0,
diff --git a/tests/test_kef.py b/tests/test_kef.py
index f45277f..a44bbf6 100644
--- a/tests/test_kef.py
+++ b/tests/test_kef.py
@@ -1,7 +1,6 @@
import pytest
from unittest.mock import patch
-
TEST_WORDS = (
"crush inherit small egg include title slogan mom remain blouse boost bonus"
)
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.