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/.
Ludovic Rousseau gerrit-no-reply at lists.osmocom.orgLudovic Rousseau has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sim-auth/+/20910 )
Change subject: card/ICC: use integer division
......................................................................
card/ICC: use integer division
File "osmo-sim-auth/card/ICC.py", line 948, in read_EF
for i in range( (fil['Size'] / fil['Record Length']) ):
TypeError: 'float' object cannot be interpreted as an integer
Change-Id: Ied75a83a2dbbd08e160b1cbc56c06a7bbcb5aa9d
---
M card/ICC.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sim-auth refs/changes/10/20910/1
diff --git a/card/ICC.py b/card/ICC.py
index 729dbc0..e47ddac 100644
--- a/card/ICC.py
+++ b/card/ICC.py
@@ -945,7 +945,7 @@
fil['Data'] = []
# for record data: need to check the number of recordings
# stored in the file, and iterate for each
- for i in range( (fil['Size'] / fil['Record Length']) ):
+ for i in range( (fil['Size'] // fil['Record Length']) ):
self.coms.push( self.READ_RECORD(P1=i+1, P2=0x04, \
Le=fil['Record Length']) )
if self.coms()[2] != (0x90, 0x00):
--
To view, visit https://gerrit.osmocom.org/c/osmo-sim-auth/+/20910
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: Ied75a83a2dbbd08e160b1cbc56c06a7bbcb5aa9d
Gerrit-Change-Number: 20910
Gerrit-PatchSet: 1
Gerrit-Owner: Ludovic Rousseau <ludovic.rousseau+osmocom at free.fr>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201025/f5e29390/attachment.htm>