Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-12 19:33:14 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-14 20:42:42 +0300
commit53917f228f9bfbb4607b6441119baeb129869b93 (patch)
tree4e87e2e8a2fc209f74a3675dc0f079bda78b6a3b /sphinx/util/logging.py
parentf8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff)
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r--sphinx/util/logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index b13631673..4bde6aa9b 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -454,7 +454,7 @@ class MessagePrefixFilter(logging.Filter):
def filter(self, record):
# type: (logging.LogRecord) -> bool
if self.prefix:
- record.msg = self.prefix + ' ' + record.msg # type: ignore
+ record.msg = self.prefix + ' ' + record.msg
return True
@@ -526,7 +526,7 @@ class ColorizeFormatter(logging.Formatter):
color = COLOR_MAP.get(record.levelno)
if color:
- return colorize(color, message) # type: ignore
+ return colorize(color, message)
else:
return message