<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/26202">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">filesystem: CardProfile: initialize empty sw table as empty dict<br><br>The table that holds the status word descriptions is initialized as an<br>empty list '[]'. This is not correct since the interpret_sw method<br>processes this data as dictionary, so lets initialize the sw member with<br>an empty dict '{}' when not status word description is given.<br><br>Change-Id: I3cae83f0f6ab274546991ecd14425f094b2816b2<br>Related: OS#5274<br>---<br>M pySim/filesystem.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/02/26202/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/filesystem.py b/pySim/filesystem.py</span><br><span>index 6e5a359..79c997c 100644</span><br><span>--- a/pySim/filesystem.py</span><br><span>+++ b/pySim/filesystem.py</span><br><span>@@ -1461,7 +1461,7 @@</span><br><span>         self.name = name</span><br><span>         self.desc = kw.get("desc", None)</span><br><span>         self.files_in_mf = kw.get("files_in_mf", [])</span><br><span style="color: hsl(0, 100%, 40%);">-        self.sw = kw.get("sw", [])</span><br><span style="color: hsl(120, 100%, 40%);">+        self.sw = kw.get("sw", {})</span><br><span>         self.applications = kw.get("applications", [])</span><br><span>         self.shell_cmdsets = kw.get("shell_cmdsets", [])</span><br><span>         self.cla = kw.get("cla", "00")</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/26202">change 26202</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/26202"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3cae83f0f6ab274546991ecd14425f094b2816b2 </div>
<div style="display:none"> Gerrit-Change-Number: 26202 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>