[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:
Vadim Yanitskiy
2021-05-02 01:42:09 +02:00
committed by laforge
parent 8e15c18498
commit 1a95d2be61

View File

@@ -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):