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

Reply via email to