Python github3.py v1.3.0属性错误:iter\U repos

Python github3.py v1.3.0属性错误:iter\U repos,python,github,github3.py,Python,Github,Github3.py,我试图迭代私有组织中的所有存储库。下面是一些在我的机器(Windows 10、Python 3.6.5)上不起作用的示例代码: 当我运行此程序时,我得到: 属性错误:iter_repos 回溯指向第5行,我称之为iter_repos。我相信你想要的 org.repositories(type=“all”) iter\u repos来自1.0 github3.py之前的版本 import github3 session = github3.login(token = "A token that

我试图迭代私有组织中的所有存储库。下面是一些在我的机器(Windows 10、Python 3.6.5)上不起作用的示例代码:

当我运行此程序时,我得到: 属性错误:iter_repos 回溯指向第5行,我称之为iter_repos。

我相信你想要的

org.repositories(type=“all”)
iter\u repos
来自1.0 github3.py之前的版本

import github3

session = github3.login(token = "A token that works with other github3.py functions and also has all permissions for testing")
org = session.organization("private organization name")
repos = list(org.iter_repos(type = "all"))