run make check and correct errors.

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

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]

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