Fix pycodestyle issues
osmo-sim-auth.py:45:12: E711 comparison to None should be 'if cond is None:'
osmo-sim-auth.py:131:20: E712 comparison to True should be 'if cond is True:' or 'if cond:'
Change-Id: I959ea84b8369a0a37bb65c47824a4c4e8d4630cc
diff --git a/osmo-sim-auth.py b/osmo-sim-auth.py
index e05c384..f668dd4 100755
--- a/osmo-sim-auth.py
+++ b/osmo-sim-auth.py
@@ -42,7 +42,7 @@
print("\nUMTS Authentication")
ret = u.authenticate(rand_bin, autn_bin, ctx='3G')
- if ret == None:
+ if ret is None:
print("UMTS Authentication failed")
exit(1)
if len(ret) == 1:
@@ -128,7 +128,7 @@
if options.autn:
autn_bin = stringToByte(a2b_hex(options.autn))
- if options.sim == True:
+ if options.sim is True:
handle_sim(options, rand_bin)
else:
if not options.autn: