The unified diff between revisions [acc84c8e..] and [914b5530..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "mifare.py"
# from [5eea21f4dd450e442910954304dc4036f83a16c5]
# to [edcbcd9ef15300e17e3fb644de4d66261a4f4077]
#
============================================================
--- mifare.py 5eea21f4dd450e442910954304dc4036f83a16c5
+++ mifare.py edcbcd9ef15300e17e3fb644de4d66261a4f4077
@@ -111,7 +111,7 @@ class MIFAREReader:
"""Log in to a block using the six-byte key.
Use a keytype of 1 to use key B."""
- sector = self.get_absolute_block((blocknum[0], 0))
+ sector = self.get_absolute_block((blockvect[0], 0))
if len(key) != 6:
raise ValueError, 'key must be a six-byte string'