aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-02 01:42:09 +0200
committerlaforge <laforge@osmocom.org>2021-05-02 20:22:15 +0000
commit1a95d2be61224b6899782bb4e00a77eb09335bc8 (patch)
treead72930e034dde13320905b411e60e06e98f9458
parent8e15c1849857c5b7ab6279698e8a8252bf1d2e21 (diff)
[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
-rw-r--r--pySim/ts_51_011.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index 15a7907..7e8e627 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):