mirror of https://gerrit.osmocom.org/pysim
Harald Welte
28accc88c3
We were using positional arguments when instantiating instances of classes like EF_5GS3GPPLOCI with non-default names/fids/... However, we got the argument order wrong and were passing the description string in the position of the file size, which causes exceptions like the following from pySim-trace: Traceback (most recent call last): File "/home/laforge/projects/git/pysim/./pySim-trace.py", line 198, in <module> tracer.main() File "/home/laforge/projects/git/pysim/./pySim-trace.py", line 125, in main inst.process(self.rs) File "/home/laforge/projects/git/pysim/pySim/apdu/__init__.py", line 259, in process self.processed = method(self.lchan) File "/home/laforge/projects/git/pysim/pySim/apdu/ts_102_221.py", line 152, in process_on_lchan if self.cmd_dict['offset'] != 0 or self.lr < self.file.size[0]: TypeError: '<' not supported between instances of 'int' and 'str' Let's use named initializers for any arguments after the usual "fid, sfid, name" initial arguments. Change-Id: I7f32c9fd01094620b68b0e54536ecc6cdbe67903 |
||
---|---|---|
.. | ||
apdu | ||
apdu_source | ||
legacy | ||
transport | ||
__init__.py | ||
ara_m.py | ||
card_handler.py | ||
card_key_provider.py | ||
cards.py | ||
cat.py | ||
cdma_ruim.py | ||
commands.py | ||
construct.py | ||
exceptions.py | ||
filesystem.py | ||
global_platform.py | ||
gsm_r.py | ||
gsmtap.py | ||
iso7816_4.py | ||
jsonpath.py | ||
ota.py | ||
profile.py | ||
runtime.py | ||
sms.py | ||
sysmocom_sja2.py | ||
tlv.py | ||
ts_31_102.py | ||
ts_31_102_telecom.py | ||
ts_31_103.py | ||
ts_31_104.py | ||
ts_51_011.py | ||
ts_102_221.py | ||
ts_102_222.py | ||
utils.py |