[Git][NTPsec/ntpsec][master] Fixed python 3 generator error.
Ian Bruene
gitlab at mg.gitlab.com
Mon Mar 19 14:09:45 UTC 2018
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
6ec63cad by Ian Bruene at 2018-03-19T14:08:54Z
Fixed python 3 generator error.
- - - - -
1 changed file:
- pylib/agentx.py
Changes:
=====================================
pylib/agentx.py
=====================================
--- a/pylib/agentx.py
+++ b/pylib/agentx.py
@@ -6,6 +6,7 @@ from __future__ import print_function, division
import select
import time
import sys
+import six
try:
import ntp.util
@@ -78,7 +79,7 @@ class MIBControl:
gen = walkMIBTree(self.oidTree, self.mibRoot)
while True:
try:
- oid, reader, writer = gen.next()
+ oid, reader, writer = six.next(gen)
if nextP is True: # GetNext
# For getnext any OID greater than the start qualifies
oidhit = (oid > searchoid)
@@ -114,7 +115,7 @@ class MIBControl:
# Find the first OID
while True:
try:
- oid, reader, writer = gen.next()
+ oid, reader, writer = six.next(gen)
if reader is None:
continue # skip unimplemented OIDs
elif oid.subids == oidrange.start.subids:
@@ -140,7 +141,7 @@ class MIBControl:
# Start filling in the rest of the range
while True:
try:
- oid, reader, writer = gen.next()
+ oid, reader, writer = six.next(gen)
if reader is None:
continue # skip unimplemented OIDs
elif (oidrange.end.isNull() is False) and \
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6ec63cadee87462ff385c76192a486b5faf3bd41
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6ec63cadee87462ff385c76192a486b5faf3bd41
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/20180319/79b49cc0/attachment.html>
More information about the vc
mailing list