mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
Remove redundant hexstr_to_fivebytearr() and hexstr_to_threebytearr() functions
These functions are replaced by a more generic function hexstr_to_Nbytearr(). And, all occurances of redundant functions are replaced by generic functions so its safe to remove them. Change-Id: I7848451b90b35dca29d29f630cdc5405b5e9c19b
This commit is contained in:
@@ -122,12 +122,6 @@ def enc_spn(name, hplmn_disp=False, oplmn_disp=False):
|
||||
if oplmn_disp: byte1 = byte1|0x02
|
||||
return i2h([byte1])+s2h(name)
|
||||
|
||||
def hexstr_to_fivebytearr(s):
|
||||
return [s[i:i+10] for i in range(0, len(s), 10) ]
|
||||
|
||||
def hexstr_to_threebytearr(s):
|
||||
return [s[i:i+6] for i in range(0, len(s), 6) ]
|
||||
|
||||
def hexstr_to_Nbytearr(s, nbytes):
|
||||
return [s[i:i+(nbytes*2)] for i in range(0, len(s), (nbytes*2)) ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user