Fix two nits with the TextBuilder class

- 'logger' was unused and can be removed
- 'TextTranslator.sectionchars' was overridden in '__init__' and doesn't
  need to be defined

Signed-off-by: Stephen Finucane <stephen@that.guru>
This commit is contained in:
Stephen Finucane
2018-11-16 11:13:14 +01:00
parent 6c94801ec2
commit ac9f6a8b05

View File

@@ -19,15 +19,12 @@ from docutils.utils import column_width
from sphinx import addnodes
from sphinx.locale import admonitionlabels, _
from sphinx.util import logging
if False:
# For type annotation
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union # NOQA
from sphinx.builders.text import TextBuilder # NOQA
logger = logging.getLogger(__name__)
class Cell:
"""Represents a cell in a table.
@@ -393,7 +390,6 @@ class TextWriter(writers.Writer):
class TextTranslator(nodes.NodeVisitor):
sectionchars = '*=-~"+`'
def __init__(self, document, builder):
# type: (nodes.Node, TextBuilder) -> None