run make check and correct errors.

This commit is contained in:
Takayuki Shimizukawa committed 2014-09-01 23:16:54 +09:00
1 parent 45cfb42864
commit b7629471e5
2 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -136,7 +136,8 @@ else:
jscatalog = {}
for message in catalog:
if any(x[0].endswith(('.js', '.js_t', '.html')) for x in message.locations):
if any(x[0].endswith(('.js', '.js_t', '.html'))
for x in message.locations):
msgid = message.id
if isinstance(msgid, (list, tuple)):
msgid = msgid[0]
+4 -2
View File
@@ -269,12 +269,14 @@ class Autosummary(Directive):
# try to also get a source code analyzer for attribute docs
try:
documenter.analyzer = ModuleAnalyzer.for_module(documenter.get_real_modname())
documenter.analyzer = ModuleAnalyzer.for_module(
documenter.get_real_modname())
# parse right now, to get PycodeErrors on parsing (results will
# be cached anyway)
documenter.analyzer.find_attr_docs()
except PycodeError, err:
documenter.env.app.debug('[autodoc] module analyzer failed: %s', err)
documenter.env.app.debug(
'[autodoc] module analyzer failed: %s', err)
# no source file -- e.g. for builtin and C modules
documenter.analyzer = None