Make code base suitable for Python 2 and 3 - stop using 2to3

This commit is contained in:
Helder Eijs 2018-11-04 11:31:40 +01:00
parent b20c1ea849
commit cd7f0128b6
52 changed files with 259 additions and 235 deletions

View file

@ -72,7 +72,7 @@ def adjust_key_parity(key_in):
def parity_byte(key_byte):
parity = 1
for i in xrange(1, 8):
for i in range(1, 8):
parity ^= (key_byte >> i) & 1
return (key_byte & 0xFE) | parity