From 20e89af1bfff5a1bc9db5b7c9c112feb1bbe25bc Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Thu, 14 May 2015 16:55:35 +0200 Subject: [PATCH] apdu_split.py: Changed buf data type list to array The data type of incoming and outgoing data should be the same at all points of the program to make it consistent. For this program the data type is array.array. --- usb_application/apdu_split.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usb_application/apdu_split.py b/usb_application/apdu_split.py index c2104707..f813b8d1 100755 --- a/usb_application/apdu_split.py +++ b/usb_application/apdu_split.py @@ -35,9 +35,9 @@ class Apdu_splitter: def __init__(self): self.state = apdu_states.APDU_S_CLA - self.buf = [] - self.pts_buf = [] - self.data = [] + self.buf = array('B', []) + self.pts_buf = array('B', []) + self.data = array('B', []) self.ins = array('B', []) self.data_remainig = 0