Attention is currently required from: laforge.
1 comment:
File pySim/esim/saip/personalization.py:
is_size = f_sucici.file_size
pad_n = is_size - len(body)
if pad_n > 0:
body = body + b'\xff' * pad_n
I'm rather certain we have implemented ff-padding a number of times in pysim and/or pyosmocom alread […]
rpad() can be used, except that its type annotations say 'str'.
grepping around for 'pad', i only find utf-8 strings used to pad data, intead of just using bytes. Hence the rpad() is documented and annotated for utf-8 strings, even though it works generally for any iterable.
I will thus use the external dependency rpad(), ignoring the type annotations,
and maybe submit a patch to remove the type annotations from rpad() and lpad() in pyosmocom.
To view, visit change 43866. To unsubscribe, or for help writing mail filters, visit settings.