<p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/pysim/+/15432">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim-prog.py">File pySim-prog.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim-prog.py@625">Patch Set #3, Line 625:</a> <code style="font-family:monospace,monospace">       first = False</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is redundant as you change first at the end of the loop in line 753. The change here has no effect</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim-prog.py@653">Patch Set #3, Line 653:</a> <code style="font-family:monospace,monospace">                         card_handler.get(first)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">First will always be False here (I know, this was true before your patch as well, just became more visible with the refactoring)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim-prog.py@659">Patch Set #3, Line 659:</a> <code style="font-family:monospace,monospace">                              card_handler.get(first)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same. First will always be False here</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim-prog.py@673">Patch Set #3, Line 673:</a> <code style="font-family:monospace,monospace">         if opts.dry_run is not True:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sorry, nothing you introduced, but this looks really weird and redundant.<br>I hope opts.dry_run hasn't change from line 670 to here. If it was False there it can't be True here.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim/card_handler.py">File pySim/card_handler.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15432/3/pySim/card_handler.py@94">Patch Set #3, Line 94:</a> <code style="font-family:monospace,monospace">                 os._exit(rc)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Is there a reason you are using os._exit() instead of sys.exit()? Unless you really need the properties of os._exit() (not flushing stdio, no cleanup) sys.exit() is probably the better choice.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/15432">change 15432</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/+/15432"/><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: Icfed3cad7927b92816723d75603b78e1a4b87ef1 </div>
<div style="display:none"> Gerrit-Change-Number: 15432 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 09 Sep 2019 08:47:49 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>