Commits

Georg Brandl committed b4b0256

Closes #854: Fix inheritance_diagram raising attribute errors on builtins.

  • Participants
  • Parent commits 8de61ac
  • Branches stable

Comments (0)

Files changed (2)

 
 * #852: Fix HtmlHelp index entry links again.
 
+* #854: Fix inheritance_diagram raising attribute errors on builtins.
+
 
 Release 1.1.2 (Nov 1, 2011) -- 1.1.1 is a silly version number anyway!
 ======================================================================

File sphinx/ext/inheritance_diagram.py

 import re
 import sys
 import inspect
+import __builtin__
 try:
     from hashlib import md5
 except ImportError:
         displayed node names.
         """
         all_classes = {}
-        builtins = __builtins__.values()
+        builtins = vars(__builtin__).values()
 
         def recurse(cls):
             if not show_builtins and cls in builtins: