pysim/pySim
Vadim Yanitskiy 98f872bed1 pySim/filesystem: fix mutable default list/dict arguments
Having lists and dictionaries as default argument values is a bad
idea, because the same instance of list/dict will be used by all
objects instantiated using such constructor:

  def appendItem(itemName, itemList=[]):
      itemList.append(itemName)
      return itemList

  print(appendItem('notebook'))
  print(appendItem('pencil'))
  print(appendItem('eraser'))

Output:

  ['notebook']
  ['notebook', 'pencil']
  ['notebook', 'pencil', 'eraser']

Change-Id: I83d718ff9c3ff6aef47930f38d7f50424f9b880f
2021-03-27 18:28:43 +00:00
..
transport Get rid of Python 2 specific compatibility leftovers 2021-03-11 22:59:21 +01:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
card_handler.py Remove Python shebang from files where it's not needed 2021-03-01 17:33:46 +01:00
cards.py pySim-shell: add ADF.ISIM / ADF.USIM dynamically 2021-03-26 22:11:40 +01:00
commands.py commands: better exception string for authentication failures 2021-03-23 11:54:47 +00:00
exceptions.py pySim/exceptions.py: fix referencing an instance member 2021-03-12 07:32:17 +00:00
filesystem.py pySim/filesystem: fix mutable default list/dict arguments 2021-03-27 18:28:43 +00:00
ts_31_102.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_31_103.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_51_011.py ts_51_011: fix bitmask compositing in EF_xPLMNwAcT.enc_act() 2021-03-07 21:52:13 +01:00
ts_102_221.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
utils.py utils: fix sw_match() 2021-03-23 12:17:23 +00:00