mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 19:48:05 -05:00
cryptsuite: another Python 3 compatibility fix.
Ahem. Re-broke P3 compatibility later in the same batch of commits that fixed it!
This commit is contained in:
parent
8d88cd21ef
commit
1ce95c7ad8
@ -970,7 +970,7 @@ class crypt(MyTestBase):
|
|||||||
def pattern(badblk, otherblks, pat):
|
def pattern(badblk, otherblks, pat):
|
||||||
# Arrange copies of the bad block in a pattern
|
# Arrange copies of the bad block in a pattern
|
||||||
# corresponding to the given bit string.
|
# corresponding to the given bit string.
|
||||||
retstr = ""
|
retstr = b""
|
||||||
while pat != 0:
|
while pat != 0:
|
||||||
retstr += (badblk if pat & 1 else next(otherblks))
|
retstr += (badblk if pat & 1 else next(otherblks))
|
||||||
pat >>= 1
|
pat >>= 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user