Change in pysim[master]: utils: specify type of parameter name in enc_spn

dexter gerrit-no-reply at lists.osmocom.org
Fri Apr 30 15:21:14 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/24005 )


Change subject: utils: specify type of parameter name in enc_spn
......................................................................

utils: specify type of parameter name in enc_spn

Related: OS#4963
Change-Id: I43a1e68afe9e756346bc0cfe8bda4ac665ac6c54
---
M pySim/utils.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/05/24005/1

diff --git a/pySim/utils.py b/pySim/utils.py
index 78058fc..bcfa2ac 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -174,7 +174,7 @@
 	name = h2s(ef[2:])
 	return (name, hplmn_disp, oplmn_disp)
 
-def enc_spn(name, hplmn_disp=False, oplmn_disp=False):
+def enc_spn(name:str, hplmn_disp=False, oplmn_disp=False):
 	byte1 = 0x00
 	if hplmn_disp: byte1 = byte1|0x01
 	if oplmn_disp: byte1 = byte1|0x02

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/24005
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I43a1e68afe9e756346bc0cfe8bda4ac665ac6c54
Gerrit-Change-Number: 24005
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210430/f78a3cfd/attachment.htm>


More information about the gerrit-log mailing list