[Git][NTPsec/ntpsec][master] Fix syntax errors
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Nov 11 09:18:38 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
523c1f39 by Matt Selsky at 2016-11-11T01:22:47-05:00
Fix syntax errors
sys.stderr.write() only takes 1 argument
misplaced comma causes 'tuple out of range' when seenlastfrag=True
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -727,8 +727,8 @@ class Mode6Session:
sys.stderr.write("ERR_INCOMPLETE: Received fragments:\n")
for (i, frag) in enumerate(fragments):
sys.stderr.write("%d: %s" % (i+1, frag.stats()))
- sys.stderr.write("last fragment %sreceived\n",
- ("not " "", )[seenlastfrag])
+ sys.stderr.write("last fragment %sreceived\n" \
+ % ("not ", "")[seenlastfrag])
raise Mode6Exception(SERR_INCOMPLETE)
rawdata = polystr(self.sock.recv(4096))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/523c1f39aa6d267eccf63a40c6bb1246977ffcdb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161111/2b45bb37/attachment.html>
More information about the vc
mailing list