New submission from Chris Lambacher <>:

When running build of Pyramid docs I got an error in
repoze\sphinx\ 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 

Repoze Bugs <>
Index: repoze/sphinx/
--- repoze/sphinx/	(revision 10803)
+++ repoze/sphinx/	(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 []):
             mapping = dict(members)
             members = [(x, mapping[x]) for x in specified]
Repoze-dev mailing list

Reply via email to