[Python-checkins] r66846 - in doctools/branches/0.4.x: CHANGES EXAMPLES sphinx/ext/autodoc.py

georg.brandl python-checkins at python.org
Wed Oct 8 13:26:49 CEST 2008


Author: georg.brandl
Date: Wed Oct  8 13:26:48 2008
New Revision: 66846

Log:
Fix an autodoc UnboundLocalError.


Modified:
   doctools/branches/0.4.x/CHANGES
   doctools/branches/0.4.x/EXAMPLES
   doctools/branches/0.4.x/sphinx/ext/autodoc.py

Modified: doctools/branches/0.4.x/CHANGES
==============================================================================
--- doctools/branches/0.4.x/CHANGES	(original)
+++ doctools/branches/0.4.x/CHANGES	Wed Oct  8 13:26:48 2008
@@ -1,6 +1,8 @@
 Release 0.4.3 (in development)
 ==============================
 
+* Fix a bug in autodoc with directly given autodoc members.
+
 * Fix a bug in autodoc that would import a module twice, once as
   "module", once as "module.".
 

Modified: doctools/branches/0.4.x/EXAMPLES
==============================================================================
--- doctools/branches/0.4.x/EXAMPLES	(original)
+++ doctools/branches/0.4.x/EXAMPLES	Wed Oct  8 13:26:48 2008
@@ -3,14 +3,20 @@
 
 This is an (incomplete) list of projects that use Sphinx or are
 experimenting with using it for their documentation.  If you like
-to be included, please mail to sphinx-dev at googlegroups.com.
+to be included, please mail to `the Google group
+<http://groups.google.com/group/sphinx-dev>`_.
 
 * Sphinx: http://sphinx.pocoo.org/
 * Python: http://docs.python.org/dev/
 * NumPy: http://mentat.za.net/numpy/refguide/
 * Pylons: http://bel-epa.com/pylonsdocs/
+* Django: http://docs.djangoproject.com/
+* Grok: http://grok.zope.org/doc/current/
+* TurboGears: http://turbogears.org/2.0/docs/
 * Jinja: http://jinja.pocoo.org/2/documentation/
+* Cython: http://docs.cython.org/
 * F2py: http://www.f2py.org/html/
+* zc.async: http://packages.python.org/zc.async/1.5.0/
 * Paver: http://www.blueskyonmars.com/projects/paver/
 * Satchmo: http://www.satchmoproject.com/docs/svn/
 * PyEphem: http://rhodesmill.org/pyephem/
@@ -18,10 +24,10 @@
 * Calibre: http://calibre.kovidgoyal.net/user_manual/
 * PyUblas: http://tiker.net/doc/pyublas/
 * Py on Windows: http://timgolden.me.uk/python-on-windows/
+* mpmath: http://mpmath.googlecode.com/svn/trunk/doc/build/index.html
 * Zope 3: e.g. http://docs.carduner.net/z3c-tutorial/
 * Glashammer: http://glashammer.welterde.de/
 * SymPy: http://docs.sympy.org/
-* Grok (upcoming)
-* Django (upcoming)
+* GeoDjango: http://geodjango.org/docs/
+* Mixin.com: http://dev.mixin.com/
 * Matplotlib (upcoming)
-* TurboGears (upcoming)

Modified: doctools/branches/0.4.x/sphinx/ext/autodoc.py
==============================================================================
--- doctools/branches/0.4.x/sphinx/ext/autodoc.py	(original)
+++ doctools/branches/0.4.x/sphinx/ext/autodoc.py	Wed Oct  8 13:26:48 2008
@@ -307,6 +307,7 @@
         if path:
             mod_cls = path
         else:
+            mod_cls = None
             # if documenting a class-level object without path, there must be a
             # current class, either from a parent auto directive ...
             if hasattr(env, 'autodoc_current_class'):


More information about the Python-checkins mailing list