[Git][NTPsec/ntpsec][master] Added list conversion for Python 3 compatability
Ian Bruene
gitlab at mg.gitlab.com
Wed Oct 18 00:16:25 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
160de0ff by Ian Bruene at 2017-10-17T19:15:38-05:00
Added list conversion for Python 3 compatability
- - - - -
1 changed file:
- pylib/agentx.py
Changes:
=====================================
pylib/agentx.py
=====================================
--- a/pylib/agentx.py
+++ b/pylib/agentx.py
@@ -1260,7 +1260,7 @@ def mibTree2List(mibtree, currentPath=()):
if (mibtree is None) or (mibtree == {}):
return () # Empty tree
paths = []
- branches = mibtree.keys()
+ branches = list(mibtree.keys())
branches.sort()
for branch in branches:
paths.append(currentPath + (branch,))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/160de0ff5dfa5e88a208b3ed2575adf727625ddc
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/160de0ff5dfa5e88a208b3ed2575adf727625ddc
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/20171018/89182066/attachment.html>
More information about the vc
mailing list