diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-03-03 22:16:35 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-03-03 22:16:35 +0000 |
| commit | 62974fa0f4a5ddc02be8df015511c90dcb00f5e2 (patch) | |
| tree | 21c0d976e497d68aee3b659a47020b4ec4651944 /docutils/utils/math/math2html.py | |
| parent | 6d4765160873303574c18a6b8501e14435161632 (diff) | |
| download | docutils-62974fa0f4a5ddc02be8df015511c90dcb00f5e2.tar.gz | |
Fix unexpected spaces around equals indicating keyword arguments.
flake8 rule E251
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9020 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils/math/math2html.py')
| -rwxr-xr-x | docutils/utils/math/math2html.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docutils/utils/math/math2html.py b/docutils/utils/math/math2html.py index 5b3f8f347..b94564638 100755 --- a/docutils/utils/math/math2html.py +++ b/docutils/utils/math/math2html.py @@ -1107,11 +1107,11 @@ class Globable: "Glob a bit of text up until (excluding) any excluded character." return self.glob(lambda: self.current() not in excluded) - def pushending(self, ending, optional = False): + def pushending(self, ending, optional=False): "Push a new ending to the bottom" self.endinglist.add(ending, optional) - def popending(self, expected = None): + def popending(self, expected=None): "Pop the ending found at the current position" if self.isout() and self.leavepending: return expected @@ -1134,7 +1134,7 @@ class EndingList: def __init__(self): self.endings = [] - def add(self, ending, optional = False): + def add(self, ending, optional=False): "Add a new ending to the list" self.endings.append(PositionEnding(ending, optional)) @@ -1325,7 +1325,7 @@ class Container: html = [html] return html - def escape(self, line, replacements = EscapeConfig.entities): + def escape(self, line, replacements=EscapeConfig.entities): "Escape a line with replacements from a map" pieces = sorted(replacements.keys()) # do them in order @@ -1406,7 +1406,7 @@ class Container: while len(container.contents) > 0: self.contents.insert(index, container.contents.pop()) - def tree(self, level = 0): + def tree(self, level=0): "Show in a tree" Trace.debug(" " * level + str(self)) for container in self.contents: @@ -1673,7 +1673,7 @@ class TaggedBit(FormulaBit): self.add(FormulaConstant(constant)) return self - def complete(self, contents, tag, breaklines = False): + def complete(self, contents, tag, breaklines=False): "Set the constant and the tag" self.contents = contents self.output = TaggedOutput().settag(tag, breaklines) @@ -1681,7 +1681,7 @@ class TaggedBit(FormulaBit): def selfcomplete(self, tag): "Set the self-closing tag, no contents (as in <hr/>)." - self.output = TaggedOutput().settag(tag, empty = True) + self.output = TaggedOutput().settag(tag, empty=True) return self class FormulaConstant(Constant): |
