Comment 3 for bug 1408934

Revision history for this message
Alexander Belchenko (bialix) wrote :

From bug report https://bugs.launchpad.net/intelhex/+bug/1432704:

I solved it with
 for i in lrange(start, end+1):
            bin.append(self._buf.get(i, pad))
instead of
        for i in xrange(start, end+1):
            bin.append(self._buf.get(i, pad))

        return bin

lrange downloaded from https://github.com/zed/lrange/

note it might not be optimal, but works