Change in osmo-sim-auth[master]: Use 2 blank lines when needed

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Oct 28 17:24:19 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-sim-auth/+/20897 )

Change subject: Use 2 blank lines when needed
......................................................................

Use 2 blank lines when needed

$ pycodestyle osmo-sim-auth.py
osmo-sim-auth.py:30:1: E302 expected 2 blank lines, found 1

Change-Id: Ic1e902b2c112b9b485a090a591db7cdbabea77f4
---
M osmo-sim-auth.py
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  fixeria: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved; Verified



diff --git a/osmo-sim-auth.py b/osmo-sim-auth.py
index c580dad..11dc11f 100755
--- a/osmo-sim-auth.py
+++ b/osmo-sim-auth.py
@@ -27,6 +27,7 @@
 from card.USIM import USIM
 from card.SIM import SIM
 
+
 def handle_usim(options, rand_bin, autn_bin):
     u = USIM()
     if not u:
@@ -61,6 +62,7 @@
     print("SRES:\t%s" % b2a_hex(byteToString(ret[0])))
     print("Kc:\t%s" % b2a_hex(byteToString(ret[1])))
 
+
 def handle_sim(options, rand_bin):
     s= SIM()
     if not s:
@@ -81,6 +83,7 @@
     if options.ipsec:
         print("1%s at uma.mnc%s.mcc%s.3gppnetwork.org,%s,%s,%s" % (imsi, imsi[3:6], imsi[0:3], b2a_hex(byteToString(rand_bin)), b2a_hex(byteToString(ret[0])), b2a_hex(byteToString(ret[1]))))
 
+
 def handle_sim_info(options):
     s= SIM()
     if not s:
@@ -92,6 +95,7 @@
 
     s.caller.get(options.param)()
 
+
 if __name__ == "__main__":
     parser = OptionParser()
     parser.add_option("-a", "--autn", dest="autn",
@@ -131,4 +135,3 @@
             print("You have to specify AUTN")
             exit(2)
         handle_usim(options, rand_bin, autn_bin)
-

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sim-auth/+/20897
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sim-auth
Gerrit-Branch: master
Gerrit-Change-Id: Ic1e902b2c112b9b485a090a591db7cdbabea77f4
Gerrit-Change-Number: 20897
Gerrit-PatchSet: 1
Gerrit-Owner: rousseau <ludovic.rousseau+osmocom at free.fr>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201028/7c60575a/attachment.htm>


More information about the gerrit-log mailing list