[Python-checkins] r66407 - doctools/trunk/sphinx/ext/autodoc.py

georg.brandl python-checkins at python.org
Fri Sep 12 17:46:54 CEST 2008


Author: georg.brandl
Date: Fri Sep 12 17:46:53 2008
New Revision: 66407

Log:
Forward-port of r66405.


Modified:
   doctools/trunk/sphinx/ext/autodoc.py

Modified: doctools/trunk/sphinx/ext/autodoc.py
==============================================================================
--- doctools/trunk/sphinx/ext/autodoc.py	(original)
+++ doctools/trunk/sphinx/ext/autodoc.py	Fri Sep 12 17:46:53 2008
@@ -194,7 +194,7 @@
     if module in _module_charsets:
         return _module_charsets[module]
     try:
-        filename = __import__(module, None, None, ['']).__file__
+        filename = __import__(module, None, None, ['foo']).__file__
     except (ImportError, AttributeError):
         return None
     if filename[-4:].lower() in ('.pyc', '.pyo'):


More information about the Python-checkins mailing list