<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/10048">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Neels Hofmeyr: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">commands: depend on pytlv only when it is actually needed<br><br>Some of the USIM-Card programming implementations do not need to look<br>at card responses, which means they also do not have to parse TLV<br>data. Lets depend on pytlv only in cases where TLV data has to be<br>parsed so that useser of cards that do not need at can go without<br>installing pytlv.<br><br>Change-Id: Ida841d74d9581e7f395751b0f74556a06a038de6<br>---<br>M pySim/commands.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/commands.py b/pySim/commands.py</span><br><span>index 9e16b0e..73c2247 100644</span><br><span>--- a/pySim/commands.py</span><br><span>+++ b/pySim/commands.py</span><br><span>@@ -23,7 +23,6 @@</span><br><span> #</span><br><span> </span><br><span> from pySim.utils import rpad, b2h</span><br><span style="color: hsl(0, 100%, 40%);">-from pytlv.TLV import *</span><br><span> </span><br><span> class SimCardCommands(object):</span><br><span>     def __init__(self, transport):</span><br><span>@@ -35,6 +34,7 @@</span><br><span>   def __get_len_from_tlv(self, fcp):</span><br><span>           # see also: ETSI TS 102 221, chapter 11.1.1.3.1 Response for MF,</span><br><span>             # DF or ADF</span><br><span style="color: hsl(120, 100%, 40%);">+                from pytlv.TLV import TLV</span><br><span>               tlvparser = TLV(['82', '83', '84', 'A5', '8a', '8b', '8c', '80', 'ab', 'c6', '81', '88'])</span><br><span> </span><br><span>                # pytlv is case sensitive!</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10048">change 10048</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/10048"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ida841d74d9581e7f395751b0f74556a06a038de6 </div>
<div style="display:none"> Gerrit-Change-Number: 10048 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>