<p><a href="https://gerrit.osmocom.org/c/pysim/+/26165">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/pysim/+/26165/1/pySim/filesystem.py">File pySim/filesystem.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/pysim/+/26165/1/pySim/filesystem.py@1509">Patch Set #1, Line 1509:</a> <code style="font-family:monospace,monospace">match_witch_card</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">which, not witch.  Halloween is over :P</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/26165/1/pySim/filesystem.py@1511">Patch Set #1, Line 1511:</a> <code style="font-family:monospace,monospace">dirived</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">derived</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/profile.py">File pySim/profile.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/pysim/+/26165/3/pySim/profile.py@31">Patch Set #3, Line 31:</a> <code style="font-family:monospace,monospace">_</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">you can simply use CardProfile.__subclasses__() which returns a list of all derived classes of CardProfile.  This way it works automatically without having to manually maintain a list here.  You also don't even need to import the CardProfileUICC... but a simple "import pySim.ts_102_221" should be sufficient, as then the code is loaded and the subclass is known.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_102_221.py">File pySim/ts_102_221.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/pysim/+/26165/3/pySim/ts_102_221.py@751">Patch Set #3, Line 751:</a> <code style="font-family:monospace,monospace">match_witch_card</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">still no witches or witchcraft involved :)  I guess you meant "which"</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/26165/3/pySim/ts_51_011.py">File pySim/ts_51_011.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/pysim/+/26165/3/pySim/ts_51_011.py@977">Patch Set #3, Line 977:</a> <code style="font-family:monospace,monospace">def _match_witch_card(scc:SimCardCommands) -> bool:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">why have this as a separate method outside of the class, only to wrap it into a @staticmethod below?  You could just move this completely inside the @staticmethod below.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/26165">change 26165</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/+/26165"/><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: If090d32551145f75c644657b90085a3ef5bfa691 </div>
<div style="display:none"> Gerrit-Change-Number: 26165 </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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 11 Nov 2021 08:33:42 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>