mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-12-08 05:19:46 +00:00
Make code base suitable for Python 2 and 3 - stop using 2to3
This commit is contained in:
parent
b20c1ea849
commit
cd7f0128b6
52 changed files with 259 additions and 235 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue