diff options
author | Georg Brandl <georg@python.org> | 2016-02-04 19:58:21 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2016-02-04 19:59:20 +0100 |
commit | bdc230b1ccc189989789f82a55023f369410309d (patch) | |
tree | 68512a9caad688d893ace4d25a151c0b404ad725 /sphinx/ext/autodoc.py | |
parent | eba0e314b3ab5140abd397b89fbb6a50e521b050 (diff) | |
download | sphinx-git-bdc230b1ccc189989789f82a55023f369410309d.tar.gz |
Closes #2295: Avoid mutating dictionary errors while enumerating members in autodoc with Python 3
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index f906d9666..6f9e057aa 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -606,7 +606,7 @@ class Documenter(object): members = [] else: members = [(mname, self.get_attr(self.object, mname, None)) - for mname in obj_dict.keys()] + for mname in list(obj_dict.keys())] membernames = set(m[0] for m in members) # add instance attributes from the analyzer for aname in analyzed_member_names: |