summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-16 19:56:53 +0200
committerGeorg Brandl <georg@python.org>2009-06-16 19:56:53 +0200
commit57514d06da2f0c5c437cd687ae18c8cfdc853a40 (patch)
treefb0ba8e074b7b85330552661d27a5174bf18e0e3 /sphinx/ext/autodoc.py
parentfdf4bf4154dfdd86f4f7b1f5abf3ae8666fe4d91 (diff)
parent0ea18cab631571469909840db46a3896b63772f8 (diff)
downloadsphinx-git-57514d06da2f0c5c437cd687ae18c8cfdc853a40.tar.gz
merge with 0.6
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 519c40f78..66f7952c2 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -330,7 +330,7 @@ class Documenter(object):
obj = self.get_attr(obj, part)
self.object = obj
return True
- except (ImportError, AttributeError), err:
+ except (SyntaxError, ImportError, AttributeError), err:
self.directive.warn(
'autodoc can\'t import/find %s %r, it reported error: '
'"%s", please check your spelling and sys.path' %