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
From bug report https:/ /bugs.launchpad .net/intelhex/ +bug/1432704:
I solved it with
bin. append( self._buf. get(i, pad))
bin. append( self._buf. get(i, pad))
for i in lrange(start, end+1):
instead of
for i in xrange(start, end+1):
return bin
lrange downloaded from https:/ /github. com/zed/ lrange/
note it might not be optimal, but works