1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -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:
Simon Tatham 2019-01-16 21:12:43 +00:00
parent 8d88cd21ef
commit 1ce95c7ad8

View File

@ -970,7 +970,7 @@ class crypt(MyTestBase):
def pattern(badblk, otherblks, pat):
# Arrange copies of the bad block in a pattern
# corresponding to the given bit string.
retstr = ""
retstr = b""
while pat != 0:
retstr += (badblk if pat & 1 else next(otherblks))
pat >>= 1