mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
python3 conversion: fix tabs and spaces inconsistency
Without that fix we have:
$ python3 pySim-read.py
File "pySim-read.py", line 135
try:
^
TabError: inconsistent use of tabs and spaces in indentation
The following command was used to do the conversion:
sed 's# #\t#g' -i $(find -name "*.py")
Then the remaining spaces spotted during the review were
addressed manually.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Change-Id: I83f76a8e9b6e36098f16552a0135a8c22dde545f
This commit is contained in:
@@ -123,41 +123,41 @@ if __name__ == '__main__':
|
||||
|
||||
# EF.PLMNsel
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['PLMNsel'])
|
||||
if sw == '9000':
|
||||
print("PLMNsel: %s" % (res))
|
||||
else:
|
||||
print("PLMNsel: Can't read, response code = %s" % (sw,))
|
||||
(res, sw) = scc.read_binary(EF['PLMNsel'])
|
||||
if sw == '9000':
|
||||
print("PLMNsel: %s" % (res))
|
||||
else:
|
||||
print("PLMNsel: Can't read, response code = %s" % (sw,))
|
||||
except Exception as e:
|
||||
print "HPLMNAcT: Can't read file -- " + str(e)
|
||||
|
||||
# EF.PLMNwAcT
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['PLMNwAcT'])
|
||||
if sw == '9000':
|
||||
print("PLMNwAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("PLMNwAcT: Can't read, response code = %s" % (sw,))
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['PLMNwAcT'])
|
||||
if sw == '9000':
|
||||
print("PLMNwAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("PLMNwAcT: Can't read, response code = %s" % (sw,))
|
||||
except Exception as e:
|
||||
print "PLMNwAcT: Can't read file -- " + str(e)
|
||||
|
||||
# EF.OPLMNwAcT
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['OPLMNwAcT'])
|
||||
if sw == '9000':
|
||||
print("OPLMNwAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("OPLMNwAcT: Can't read, response code = %s" % (sw,))
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['OPLMNwAcT'])
|
||||
if sw == '9000':
|
||||
print("OPLMNwAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("OPLMNwAcT: Can't read, response code = %s" % (sw,))
|
||||
except Exception as e:
|
||||
print "OPLMNwAcT: Can't read file -- " + str(e)
|
||||
|
||||
# EF.HPLMNAcT
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['HPLMNAcT'])
|
||||
if sw == '9000':
|
||||
print("HPLMNAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("HPLMNAcT: Can't read, response code = %s" % (sw,))
|
||||
try:
|
||||
(res, sw) = scc.read_binary(EF['HPLMNAcT'])
|
||||
if sw == '9000':
|
||||
print("HPLMNAcT:\n%s" % (format_xplmn_w_act(res)))
|
||||
else:
|
||||
print("HPLMNAcT: Can't read, response code = %s" % (sw,))
|
||||
except Exception as e:
|
||||
print "HPLMNAcT: Can't read file -- " + str(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user