mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-27 15:58:34 +03:00
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
This commit is contained in:
@@ -410,6 +410,7 @@ class OtaDialectSms(OtaDialect):
|
|||||||
ciph = encoded[2+8:]
|
ciph = encoded[2+8:]
|
||||||
envelope_data = otak.crypt.decrypt(ciph)
|
envelope_data = otak.crypt.decrypt(ciph)
|
||||||
else:
|
else:
|
||||||
|
cpl = None # FIXME this line was just added to silence pylint possibly-used-before-assignment
|
||||||
part_head = encoded[:8]
|
part_head = encoded[:8]
|
||||||
envelope_data = encoded[8:]
|
envelope_data = encoded[8:]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user