summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-11-17 14:24:04 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-11-17 14:24:04 +0900
commit66448309413a56b9e38daa758a12a1e4f4556616 (patch)
treeadd850ce39f998d641c65d8497de7803bed024ac /sphinx/application.py
parent05c31a03144633d097a695c531a4e54d097b1ba1 (diff)
parentfcdeafd56e67cc38dcd56862cc0ee6304178a3e8 (diff)
downloadsphinx-git-66448309413a56b9e38daa758a12a1e4f4556616.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 18af3f803..5bd5c9f0e 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -1128,26 +1128,30 @@ class Sphinx:
"""
if typ == 'read':
attrname = 'parallel_read_safe'
- message = __("the %s extension does not declare if it is safe "
- "for parallel reading, assuming it isn't - please "
- "ask the extension author to check and make it "
- "explicit")
+ message_not_declared = __("the %s extension does not declare if it "
+ "is safe for parallel reading, assuming "
+ "it isn't - please ask the extension author "
+ "to check and make it explicit")
+ message_not_safe = __("the %s extension is not safe for parallel reading")
elif typ == 'write':
attrname = 'parallel_write_safe'
- message = __("the %s extension does not declare if it is safe "
- "for parallel writing, assuming it isn't - please "
- "ask the extension author to check and make it "
- "explicit")
+ message_not_declared = __("the %s extension does not declare if it "
+ "is safe for parallel writing, assuming "
+ "it isn't - please ask the extension author "
+ "to check and make it explicit")
+ message_not_safe = __("the %s extension is not safe for parallel writing")
else:
raise ValueError('parallel type %s is not supported' % typ)
for ext in self.extensions.values():
allowed = getattr(ext, attrname, None)
if allowed is None:
- logger.warning(message, ext.name)
+ logger.warning(message_not_declared, ext.name)
logger.warning(__('doing serial %s'), typ)
return False
elif not allowed:
+ logger.warning(message_not_safe, ext.name)
+ logger.warning(__('doing serial %s'), typ)
return False
return True