From fae45efa06ec9ae308838c657c0a6907d98259c6 Mon Sep 17 00:00:00 2001 From: Fezthedev Date: Tue, 7 May 2019 13:43:54 -0400 Subject: [PATCH] Attempt to make Travis happy --- examples/readwrite_mifare.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/readwrite_mifare.py b/examples/readwrite_mifare.py index ab68b48..dfdc76e 100644 --- a/examples/readwrite_mifare.py +++ b/examples/readwrite_mifare.py @@ -29,11 +29,10 @@ type RFID tag import board import busio -from digitalio import DigitalInOut # # NOTE: pick the import that matches the interface being used # -from adafruit_pn532.adafruit_pn532 import MIFARE_CMD_AUTH_B +from adafruit_pn532.adafruit_pn532 import MIFARE_CMD_AUTH_B from adafruit_pn532.i2c import PN532_I2C #from adafruit_pn532.spi import PN532_SPI #from adafruit_pn532.uart import PN532_UART @@ -84,7 +83,7 @@ print("") print('Found card with UID:', [hex(i) for i in uid]) print("Authenticating block 4 ...") -authenticated = pn532.mifare_classic_authenticate_block(uid,4,MIFARE_CMD_AUTH_B,key) +authenticated = pn532.mifare_classic_authenticate_block(uid, 4, MIFARE_CMD_AUTH_B, key) if not authenticated: print("Authentication failed!")