Change in pysim[master]: fix 'TabError: inconsistent use of tabs and spaces in indentation'

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
Mon Aug 31 15:02:49 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/19913 )

Change subject: fix 'TabError: inconsistent use of tabs and spaces in indentation'
......................................................................

fix 'TabError: inconsistent use of tabs and spaces in indentation'

those errors appear with python 3.8.5 otherwise

Change-Id: I5e8a41a8aa9abdd0162c4635ccf9bfe736cca27e
---
M pySim/cards.py
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/pySim/cards.py b/pySim/cards.py
index 2d779b3..2971d45 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -45,8 +45,8 @@
 	def file_exists(self, fid):
 		res_arr = self._scc.try_select_file(fid)
 		for res in res_arr:
-		    if res[1] != '9000':
-			return False
+			if res[1] != '9000':
+				return False
 		return True
 
 	def verify_adm(self, key):
@@ -1182,7 +1182,7 @@
 				self._scc.update_binary('af20', p['opc'], 17)
 
 			# 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'):
 					sw = self.update_ehplmn(p['mcc'], p['mnc'])
 					if sw != '9000':

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/19913
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I5e8a41a8aa9abdd0162c4635ccf9bfe736cca27e
Gerrit-Change-Number: 19913
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200831/8f678abc/attachment.htm>


More information about the gerrit-log mailing list