mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
[pylint] fix non-existing 'res' in EF_CNL._encode_record_hex()
pySim/ts_51_011.py:648:45: E0602: Undefined variable 'res' (undefined-variable) pySim/ts_51_011.py:648:68: E0602: Undefined variable 'res' (undefined-variable) pySim/ts_51_011.py:649:24: E0602: Undefined variable 'res' (undefined-variable) Change-Id: I039e2b271dd3ab44f437108c5e8def43e97098a3
This commit is contained in:
@@ -649,8 +649,11 @@ class EF_CNL(TransRecEF):
|
||||
return res
|
||||
def _encode_record_hex(self, in_json):
|
||||
plmn = enc_plmn(in_json['mcc'], in_json['mnc'])
|
||||
return b2h(pack('!3sBBB', h2b(plmn), res['network_subset'], res['service_provider_id'],
|
||||
res['corporate_id']))
|
||||
return b2h(pack('!3sBBB',
|
||||
h2b(plmn),
|
||||
in_json['network_subset'],
|
||||
in_json['service_provider_id'],
|
||||
in_json['corporate_id']))
|
||||
|
||||
# TS 51.011 Section 10.3.31
|
||||
class EF_NIA(LinFixedEF):
|
||||
|
||||
Reference in New Issue
Block a user