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:
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 37fa672af..a062a7d59 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -77,7 +77,7 @@ def convert_serializable(records: List[logging.LogRecord]) -> None:
location = getattr(r, 'location', None)
if isinstance(location, nodes.Node):
- r.location = get_node_location(location) # type: ignore
+ r.location = get_node_location(location)
class SphinxLogRecord(logging.LogRecord):
@@ -431,7 +431,7 @@ class DisableWarningIsErrorFilter(logging.Filter):
"""Disable WarningIsErrorFilter if this filter installed."""
def filter(self, record: logging.LogRecord) -> bool:
- record.skip_warningsiserror = True # type: ignore
+ record.skip_warningsiserror = True
return True