[Repoze-dev] [issue175] repoze.sphinx.autointerface generates exception if options.members is None
Chris McDonough chr...@plope.com added the comment: Thanks! Fixed in SVN (still needs release though). -- status: chatting - resolved __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue175 __ ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] [issue175] repoze.sphinx.autointerface generates exception if options.members is None
Tres Seaver tsea...@agendaless.com added the comment: Fix released: http://pypi.python.org/pypi/repoze.sphinx.autointerface/0.6.2 -- status: resolved - chatting __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue175 __ ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] [issue175] repoze.sphinx.autointerface generates exception if options.members is None
New submission from Chris Lambacher ch...@kateandchris.net: When running build of Pyramid docs I got an error in repoze\sphinx\autointerface.py on line 56 because self.options.members was None and therefore not iterable. sphinx.ext.autodoc appears to explicitly handle that case by replacing it with an empty list. Attached is a patch to do the equivalent for repoze.sphinx.autointerface. -- files: options_members_none.patch messages: 477 nosy: lambacck priority: bug status: unread title: repoze.sphinx.autointerface generates exception if options.members is None __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue175 __Index: repoze/sphinx/autointerface.py === --- repoze/sphinx/autointerface.py (revision 10803) +++ repoze/sphinx/autointerface.py (working copy) @@ -53,7 +53,7 @@ members = self.object.namesAndDescriptions() if self.options.members is not autodoc.ALL: specified = [] -for line in self.options.members: +for line in (self.options.members or []): specified.extend(line.split()) mapping = dict(members) members = [(x, mapping[x]) for x in specified] ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
[Repoze-dev] [issue175] repoze.sphinx.autointerface generates exception if options.members is None
Chris Lambacher ch...@kateandchris.net added the comment: FYI, the error happened consistently for me on Windows in Python 2.6 and 2.7. -- status: unread - chatting __ Repoze Bugs b...@bugs.repoze.org http://bugs.repoze.org/issue175 __ sphinx-err-cmzfpl.log Description: Binary data ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev