From 1a95d2be61224b6899782bb4e00a77eb09335bc8 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 2 May 2021 01:42:09 +0200 Subject: [PATCH] [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 --- pySim/ts_51_011.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index 15a79077..7e8e6271 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -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):