Commit 6dd4467
committed
libusb1: Fix get_extra on python 2.7 .
Whereas single-item retrieval on a "bytes" instance yields a string and
hence requires an "ord" call, on "bytearray" instance it yields an integer
directly. This was broken by:
commit b26f6cd
Author: Vincent Pelletier <plr.vincent@gmail.com>
Date: Sun Oct 16 11:14:04 2016 +0000
Use writeable buffer for transfers (sync & async).
along with buffer_at cast to bytearray.1 parent 78b0688 commit 6dd4467
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 143 | | |
149 | 144 | | |
150 | 145 | | |
| |||
1104 | 1099 | | |
1105 | 1100 | | |
1106 | 1101 | | |
1107 | | - | |
| 1102 | + | |
1108 | 1103 | | |
1109 | 1104 | | |
1110 | 1105 | | |
| |||
0 commit comments