Mercurial > ~darius > hgwebdir.cgi > pyinst
comparison usb488.py @ 58:0684a20cc5c3
Fix for Python 3
author | Daniel O'Connor <doconnor@gsoft.com.au> |
---|---|
date | Fri, 08 Jan 2021 14:03:52 +1030 |
parents | 19045ad9f5f5 |
children | dd27521002a5 |
comparison
equal
deleted
inserted
replaced
57:19045ad9f5f5 | 58:0684a20cc5c3 |
---|---|
215 | 215 |
216 # Add the data | 216 # Add the data |
217 pkt = pkt + orddata | 217 pkt = pkt + orddata |
218 | 218 |
219 # Align to 4 bytes | 219 # Align to 4 bytes |
220 alignlen = ((len(pkt) / 4) + 1) * 4 | 220 alignlen = ((len(pkt) // 4) + 1) * 4 |
221 pkt = pkt + [0] * (alignlen - len(pkt)) | 221 pkt = pkt + [0] * (alignlen - len(pkt)) |
222 | 222 |
223 # Bump the tag | 223 # Bump the tag |
224 self.incrtag() | 224 self.incrtag() |
225 | 225 |