Merge pull request #857 from cpunion/fix-pydump

chore: fix types error in pydump
This commit is contained in:
xushiwei
2024-11-07 07:59:15 +08:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ func main() {
items := cjson.Array()
mod := py.ImportModule(pyLib)
keys := mod.ModuleGetDict().DictKeys()
for i, n := uintptr(0), keys.ListLen(); i < n; i++ {
for i, n := 0, keys.ListLen(); i < n; i++ {
key := keys.ListItem(i)
val := mod.GetAttr(key)
doc := val.GetAttrString(c.Str("__doc__"))