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:
Ludovic Rousseau 2020-10-17 13:45:22 +02:00 committed by laforge
parent 275e4c1b59
commit 50579f1ae7
1 changed files with 2 additions and 2 deletions

View File

@ -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: