krb5 commit: More python3 fixes for t_daemon.py
Greg Hudson
ghudson at mit.edu
Wed Nov 10 14:11:53 EST 2021
https://github.com/krb5/krb5/commit/e0084425df784952e76b3bcc8ae9d08300234733
commit e0084425df784952e76b3bcc8ae9d08300234733
Author: Sumit Bose <sbose at redhat.com>
Date: Mon Nov 8 17:47:17 2021 +0100
More python3 fixes for t_daemon.py
[ghudson at mit.edu: use a list comprehension instead of map()]
src/lib/krad/t_daemon.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/krad/t_daemon.py b/src/lib/krad/t_daemon.py
index 7668cd7..4a3de07 100755
--- a/src/lib/krad/t_daemon.py
+++ b/src/lib/krad/t_daemon.py
@@ -50,7 +50,7 @@ class TestServer(server.Server):
for key in pkt.keys():
if key == "User-Password":
- passwd = map(pkt.PwDecrypt, pkt[key])
+ passwd = [pkt.PwDecrypt(x) for x in pkt[key]]
reply = self.CreateReplyPacket(pkt)
if passwd == ['accept']:
@@ -61,8 +61,8 @@ class TestServer(server.Server):
srv = TestServer(addresses=["localhost"],
hosts={"127.0.0.1":
- server.RemoteHost("127.0.0.1", "foo", "localhost")},
- dict=dictionary.Dictionary(StringIO.StringIO(DICTIONARY)))
+ server.RemoteHost("127.0.0.1", b"foo", "localhost")},
+ dict=dictionary.Dictionary(StringIO(DICTIONARY)))
# Write a sentinel character to let the parent process know we're listening.
sys.stdout.write("~")
More information about the cvs-krb5
mailing list