[Git][NTPsec/ntpsec][master] ntpmon: Python 3 fix, remove uneeded/broken UTF-8 conversion.
Gary E. Miller
gitlab at mg.gitlab.com
Tue Aug 15 22:24:16 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
4b46d4b2 by Gary E. Miller at 2017-08-15T15:24:01-07:00
ntpmon: Python 3 fix, remove uneeded/broken UTF-8 conversion.
- - - - -
1 changed file:
- ntpclients/ntpmon
Changes:
=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -351,7 +351,7 @@ if __name__ == '__main__':
dtype = ntp.ntpc.TYPE_PEER
sw = ntp.ntpc.statustoa(dtype,
peers[selected].status)
- strconvert = u"assoc=%d: %s\n".encode('UTF-8')
+ strconvert = "assoc=%d: %s\n"
stdscr.addstr(strconvert
% (peers[selected].associd, sw))
strconvert = peer_detail(retained, showunits)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4b46d4b2141dfd933f2a9ab000e4f19ead6d14b9
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4b46d4b2141dfd933f2a9ab000e4f19ead6d14b9
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170815/dc2ab9bf/attachment.html>
More information about the vc
mailing list