#145: Fix autodoc problem with automatic members that refuse to be

getattr()'d from their parent.
This commit is contained in:
Georg Brandl 2009-04-28 20:08:17 +02:00
parent 46bc1cbe4b
commit 124864ed27
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,9 @@
Release 0.6.2 (in development)
==============================
* #145: Fix autodoc problem with automatic members that refuse to be
getattr()'d from their parent.
* If specific filenames to build are given on the command line,
check that they are within the source directory.
@ -11,6 +14,7 @@ Release 0.6.2 (in development)
* #134: Fix pending_xref leftover nodes when using the todolist
directive from the todo extension.
Release 0.6.1 (Mar 26, 2009)
============================

View File

@ -485,7 +485,7 @@ class Documenter(object):
# using keys() because apparently there are objects for which
# __dict__ changes while getting attributes
return False, sorted([
(mname, self.get_attr(self.object, mname))
(mname, self.get_attr(self.object, mname, None))
for mname in self.get_attr(self.object, '__dict__').keys()])
def filter_members(self, members, want_all):