pysim/pySim
Harald Welte 28accc88c3 ts_31_102: Fix initialization of file size
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
2023-10-18 23:21:46 +02:00
..
apdu pySim-trace: mark card reset in the trace 2023-07-28 10:14:19 +02:00
apdu_source pySim-trace: mark card reset in the trace 2023-07-28 10:14:19 +02:00
legacy cards: get rid of method read_iccid 2023-08-21 18:36:10 +00:00
transport transport: do not catch exceptions in init_reader 2023-10-16 14:36:02 +02:00
__init__.py cosmetic: Switch to consistent four-spaces indent; run autopep8 2022-02-11 13:32:58 +01:00
ara_m.py ARA-M: fix encoding of the PkgRefDO when using aram_store_ref_ar_do 2023-07-29 06:23:15 +00:00
card_handler.py cosmetic: Switch to consistent four-spaces indent; run autopep8 2022-02-11 13:32:58 +01:00
card_key_provider.py cosmetic: Switch to consistent four-spaces indent; run autopep8 2022-02-11 13:32:58 +01:00
cards.py cards: get rid of method read_iccid 2023-08-21 18:36:10 +00:00
cat.py Add TLV definitions for *a lot more* CAT / USAT data objects 2022-08-06 18:56:42 +02:00
cdma_ruim.py Introduce concept of CardProfileAddon 2023-07-12 22:05:14 +02:00
commands.py filesystem: add attribute "leftpad" to class LinFixedEF 2023-09-07 14:19:26 +02:00
construct.py construct: add adapter Utf8Adapter to safely interpret utf8 text 2023-07-26 17:13:54 +02:00
exceptions.py Fix printing of SwMatchError after introduction of logical channels 2022-07-30 16:37:01 +02:00
filesystem.py filesystem: add attribute "leftpad" to class LinFixedEF 2023-09-07 14:19:26 +02:00
global_platform.py GlobalPlatform ADF.SD: Add command line reference + error message 2023-07-11 08:54:04 +02:00
gsm_r.py Introduce concept of CardProfileAddon 2023-07-12 22:05:14 +02:00
gsmtap.py Introduce APDU/TPDU trace decoder 2022-07-23 12:18:57 +02:00
iso7816_4.py cosmetic: Remove extraneous empty lines between spec-section-comment and class 2022-02-14 00:51:27 +01:00
jsonpath.py cosmetic: Switch to consistent four-spaces indent; run autopep8 2022-02-11 13:32:58 +01:00
ota.py Switch from pycryptodome to pycryptodomex 2023-06-05 20:58:11 +02:00
profile.py Introduce concept of CardProfileAddon 2023-07-12 22:05:14 +02:00
runtime.py filesystem: add attribute "leftpad" to class LinFixedEF 2023-09-07 14:19:26 +02:00
sms.py work-around what appears to be a pylint bug 2023-06-27 09:26:28 +02:00
sysmocom_sja2.py move Runtime{State,Lchan} from pySim.filesystem to new pySim.runtime 2023-07-12 22:05:14 +02:00
tlv.py pySim/tlv.py: Fix TLV_IE_Collection from_dict with nested collections 2023-07-11 08:42:12 +02:00
ts_31_102.py ts_31_102: Fix initialization of file size 2023-10-18 23:21:46 +02:00
ts_31_102_telecom.py Reimplement ust_service_activate and ust_service_deactivate for USIM/EF.UST 2023-07-28 15:34:40 +00:00
ts_31_103.py Fix the remaining functions using the broken Card.update_ust() call 2023-07-29 06:23:15 +00:00
ts_31_104.py HPSIM application support 2023-06-06 17:36:39 +02:00
ts_51_011.py filesystem: add attribute "leftpad" to class LinFixedEF 2023-09-07 14:19:26 +02:00
ts_102_221.py ts_102_221: Remove CardProfileUICCSIM 2023-07-12 22:05:14 +02:00
ts_102_222.py ts_102_222: Remove unneeded imports 2023-07-11 08:42:12 +02:00
utils.py utils.py: remove superfluous import from itself 2023-07-29 06:21:54 +00:00