mirror of https://gerrit.osmocom.org/pysim
fix 'TabError: inconsistent use of tabs and spaces in indentation'
those errors appear with python 3.8.5 otherwise Change-Id: I5e8a41a8aa9abdd0162c4635ccf9bfe736cca27e
This commit is contained in:
parent
ca6739458e
commit
1e42420e57
|
@ -45,8 +45,8 @@ class Card(object):
|
||||||
def file_exists(self, fid):
|
def file_exists(self, fid):
|
||||||
res_arr = self._scc.try_select_file(fid)
|
res_arr = self._scc.try_select_file(fid)
|
||||||
for res in res_arr:
|
for res in res_arr:
|
||||||
if res[1] != '9000':
|
if res[1] != '9000':
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def verify_adm(self, key):
|
def verify_adm(self, key):
|
||||||
|
@ -1182,7 +1182,7 @@ class SysmoISIMSJA2(UsimCard):
|
||||||
self._scc.update_binary('af20', p['opc'], 17)
|
self._scc.update_binary('af20', p['opc'], 17)
|
||||||
|
|
||||||
# update EF.EHPLMN in ADF.USIM
|
# update EF.EHPLMN in ADF.USIM
|
||||||
if self.file_exists(EF_USIM_ADF_map['EHPLMN']):
|
if self.file_exists(EF_USIM_ADF_map['EHPLMN']):
|
||||||
if p.get('mcc') and p.get('mnc'):
|
if p.get('mcc') and p.get('mnc'):
|
||||||
sw = self.update_ehplmn(p['mcc'], p['mnc'])
|
sw = self.update_ehplmn(p['mcc'], p['mnc'])
|
||||||
if sw != '9000':
|
if sw != '9000':
|
||||||
|
|
Loading…
Reference in New Issue