<p>Ludovic Rousseau has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sim-auth/+/20908">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix pycodestyle issues<br><br>osmo-sim-auth.py:45:12: E711 comparison to None should be 'if cond is None:'<br>osmo-sim-auth.py:131:20: E712 comparison to True should be 'if cond is True:' or 'if cond:'<br><br>Change-Id: I959ea84b8369a0a37bb65c47824a4c4e8d4630cc<br>---<br>M osmo-sim-auth.py<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sim-auth refs/changes/08/20908/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/osmo-sim-auth.py b/osmo-sim-auth.py</span><br><span>index e05c384..f668dd4 100755</span><br><span>--- a/osmo-sim-auth.py</span><br><span>+++ b/osmo-sim-auth.py</span><br><span>@@ -42,7 +42,7 @@</span><br><span> </span><br><span>     print("\nUMTS Authentication")</span><br><span>     ret = u.authenticate(rand_bin, autn_bin, ctx='3G')</span><br><span style="color: hsl(0, 100%, 40%);">-    if ret == None:</span><br><span style="color: hsl(120, 100%, 40%);">+    if ret is None:</span><br><span>         print("UMTS Authentication failed")</span><br><span>         exit(1)</span><br><span>     if len(ret) == 1:</span><br><span>@@ -128,7 +128,7 @@</span><br><span>     if options.autn:</span><br><span>         autn_bin = stringToByte(a2b_hex(options.autn))</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    if options.sim == True:</span><br><span style="color: hsl(120, 100%, 40%);">+    if options.sim is True:</span><br><span>         handle_sim(options, rand_bin)</span><br><span>     else:</span><br><span>         if not options.autn:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sim-auth/+/20908">change 20908</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/osmo-sim-auth/+/20908"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sim-auth </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I959ea84b8369a0a37bb65c47824a4c4e8d4630cc </div>
<div style="display:none"> Gerrit-Change-Number: 20908 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Ludovic Rousseau <ludovic.rousseau+osmocom@free.fr> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>