mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06:00
klippy: Remove some obscure python2 dependencies
Don't modify dictionaries while iterating them and be careful to use // when doing an integer divide. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1bc3e0a678
commit
8419e152bb
3 changed files with 3 additions and 3 deletions
|
@ -252,7 +252,7 @@ class MessageParser:
|
|||
def _parse_buffer(self, value):
|
||||
tval = int(value, 16)
|
||||
out = []
|
||||
for i in range(len(value)/2):
|
||||
for i in range(len(value) // 2):
|
||||
out.append(tval & 0xff)
|
||||
tval >>= 8
|
||||
out.reverse()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue