Commit 59f98cb3 authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Addrrss GitLab issue #165: ntpq -p fails on Python3

parent 09ffc346
......@@ -1048,7 +1048,7 @@ class ControlSession:
else:
if self.debug:
warn("Fragment collection ends\n")
self.response = "".join([frag.data for frag in fragments])
self.response = polybytes("".join([polystr(frag.data) for frag in fragments]))
if self.debug >= 4:
sys.stdout.write("Response packet:\n")
dump_hex_printable(self.response)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment