[Git][NTPsec/ntpsec][master] Just one line in ntpviz not obviously polyglot.
Gary E. Miller
gitlab at mg.gitlab.com
Sun Sep 11 00:06:46 UTC 2016
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
fad5faf3 by Gary E. Miller at 2016-09-10T17:05:31-07:00
Just one line in ntpviz not obviously polyglot.
I can find no way to encode that one line that works in
Python 2 and Python 3. Comment that problem area.
- - - - -
1 changed file:
- ntpstats/ntpviz
Changes:
=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -71,6 +71,9 @@ def gnuplot(template, outfile=None):
proc = subprocess.Popen("gnuplot",
shell=False, bufsize=4096,
stdin=subprocess.PIPE, stdout=out)
+ # next line works in Python 3, not Python 2
+ # proc.stdin.write(template.encode('ascii','ignore'))
+ # next line works in Python 2, not Python 3
proc.stdin.write(template)
proc.stdin.close()
return proc.wait()
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/fad5faf3673a0c2b436109c9178faeb194c62820
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160911/356e4531/attachment.html>
More information about the vc
mailing list