<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">yes, I was running it with python 2, I thought it was not upgraded to 3. The header of pySim-read still uses python2 :-)</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I fixed most of the problems like print without parentheses, so pySim works fine with Python 3 ;) Unfortunately, yes, we still have Python 2 in headers. The reason is that our test setup is based on old Debian image that ships ancient Python 3.5 from 2017 and old pyscard. Somehow this combination breaks our lazy 'match every line' unit tests. See https://gerrit.osmocom.org/c/pysim/+/15504/. </p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Still, if cmd is not a str, you will not initialise bcmd, so probably need to add something in the else?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Ah, I got what you mean now. Will try to fix soon. Thanks!</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/18159">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/18159">change 18159</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/+/18159"/><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: I20bc00315e2c7c298f46283852865c1416047bc6 </div>
<div style="display:none"> Gerrit-Change-Number: 18159 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: guilly@gmail.com <guilly@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 02 Jun 2020 14:08:56 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>