[Git][NTPsec/ntpsec][master] 2 commits: Update packet.py In the readvars method in the Peer class...
Matt Selsky
gitlab at mg.gitlab.com
Mon Feb 1 18:38:28 UTC 2021
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
fd9fc959 by Brendan Bank at 2021-02-01T18:30:23+00:00
Update packet.py In the readvars method in the Peer class self.session.readvars() is called however readvars is not a valid method in session (ControlSession class). The correct method seems to be readvar.
- - - - -
99313307 by Brendan Bank at 2021-02-01T18:30:23+00:00
Update test_packet.py rename readvars to readvar as session does not have a readvars method
- - - - -
2 changed files:
- pylib/packet.py
- tests/pylib/test_packet.py
Changes:
=====================================
pylib/packet.py
=====================================
@@ -584,7 +584,7 @@ class Peer:
self.variables = {}
def readvars(self):
- self.variables = self.session.readvars()
+ self.variables = self.session.readvar()
def __str__(self):
return "<Peer: associd=%s status=%0x>" % (self.associd, self.status)
=====================================
tests/pylib/test_packet.py
=====================================
@@ -25,7 +25,7 @@ class SessionJig:
def __init__(self):
self.readvars_calls = 0
- def readvars(self):
+ def readvar(self):
self.readvars_calls += 1
return {"foo": 23, "bar": 42}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/833a676938f51e531b9b42bbd04bfca4ee6be2dd...99313307c88c6fd892d5d76ae259874eab82dcf4
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/833a676938f51e531b9b42bbd04bfca4ee6be2dd...99313307c88c6fd892d5d76ae259874eab82dcf4
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/20210201/dc9125f8/attachment.htm>
More information about the vc
mailing list