[Git][NTPsec/ntpsec][master] Addrrss GitLab issue #165: ntpq -p fails on Python3

Eric S. Raymond gitlab at mg.gitlab.com
Sun Nov 27 04:58:44 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
59f98cb3 by Eric S. Raymond at 2016-11-26T23:57:00-05:00
Addrrss GitLab issue #165: ntpq -p fails on Python3

- - - - -


1 changed file:

- pylib/packet.py


Changes:

=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -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)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/59f98cb3c9abbef914b7de1837f70924e6b854c9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161127/5460e4fb/attachment.html>


More information about the vc mailing list