Bug: ntpq: raw mrulist fails on Python3
ntpq> raw
ntpq> mrulist
Ctrl-C will stop MRU retrieval and display partial results.
Traceback (most recent call last):
File "ntpq/ntpq", line 1656, in <module>
interpreter.cmdloop()
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/cmd.py", line 217, in onecmd
return func(arg)
File "ntpq/ntpq", line 1314, in do_mrulist
span = self.session.mrulist(variables=cmdvars, rawhook=mruhook)
File "/usr/local/lib/python3.5/site-packages/ntp/packet.py", line 1299, in mrulist
rawhook(variables)
File "ntpq/ntpq", line 1310, in <lambda>
quiet=True)
File "ntpq/ntpq", line 450, in printvars
text = session.response.replace(",\r\n",",\n")
TypeError: a bytes-like object is required, not 'str'