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
This commit is contained in:
parent
275e4c1b59
commit
50579f1ae7
|
@ -42,7 +42,7 @@ def handle_usim(options, rand_bin, autn_bin):
|
|||
|
||||
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 __name__ == "__main__":
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue