5f944e
From 7e6e424ed579c53a0767ba71eb47345ae1e472ca Mon Sep 17 00:00:00 2001
5f944e
From: minus <github@mnus.de>
5f944e
Date: Sat, 12 Mar 2016 12:18:44 +0100
5f944e
Subject: [PATCH] fixed Python 3 compatibility for Yubikey 4
5f944e
5f944e
---
5f944e
 yubico/yubikey_4_usb_hid.py | 2 +-
5f944e
 1 file changed, 1 insertion(+), 1 deletion(-)
5f944e
5f944e
diff --git a/yubico/yubikey_4_usb_hid.py b/yubico/yubikey_4_usb_hid.py
5f944e
index 31c6f5d..b44bb90 100644
5f944e
--- a/yubico/yubikey_4_usb_hid.py
5f944e
+++ b/yubico/yubikey_4_usb_hid.py
5f944e
@@ -104,7 +104,7 @@ def _read_capabilities(self):
5f944e
         frame = yubikey_frame.YubiKeyFrame(command=SLOT.YK4_CAPABILITIES)
5f944e
         self._device._write(frame)
5f944e
         response = self._device._read_response()
5f944e
-        r_len = ord(response[0])
5f944e
+        r_len = yubico_util.ord_byte(response[0])
5f944e
 
5f944e
         # 1 byte length, 2 byte CRC.
5f944e
         if not yubico_util.validate_crc16(response[:r_len+3]):