[Git][NTPsec/ntpsec][master] Changed location of \xae replacement.
Eric S. Raymond
gitlab at mg.gitlab.com
Wed Apr 12 02:25:04 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
a7331ae5 by Ian Bruene at 2017-04-11T21:18:18-05:00
Changed location of \xae replacement.
Somehow the 0xae delimiter was slipping through, possibly hiding inside
a variable name.
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -1263,10 +1263,10 @@ class ControlSession:
if response:
for pair in response.split(","):
try:
- pair = pair.strip()
+ pair = pair.strip().replace("\xae", ",")
eq = pair.index("=")
var = pair[:eq].strip()
- val = pair[eq+1:].strip().replace("\xae", ",")
+ val = pair[eq+1:].strip()
try:
if raw is True:
val = (int(val, 0), val)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a7331ae5a2040b247c3ad71525cd5063f45232d6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170412/1a9ac9ae/attachment.html>
More information about the vc
mailing list