From cabb8edd53a0676902176f904e53ba7bb608f03b Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 7 Mar 2025 20:35:38 +0100 Subject: [PATCH] pylint: ota.py: fix E0606 possibly-used-before-assignment ************* Module pySim.ota pySim/ota.py:430:24: E0606: Possibly using variable 'cpl' before assignment (possibly-used-before-assignment) Change-Id: Ibbae851e458bbe7426a788b0784d553753c1056f --- pySim/ota.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim/ota.py b/pySim/ota.py index 8d7e0fd4..2d1c8d16 100644 --- a/pySim/ota.py +++ b/pySim/ota.py @@ -410,6 +410,7 @@ class OtaDialectSms(OtaDialect): ciph = encoded[2+8:] envelope_data = otak.crypt.decrypt(ciph) else: + cpl = None # FIXME this line was just added to silence pylint possibly-used-before-assignment part_head = encoded[:8] envelope_data = encoded[8:]