Skip to content

Commit 6c8fa18

Browse files
author
Aron Fischer
committed
make rebuild() private
1 parent ff886f6 commit 6c8fa18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manim/utils/tex.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
if post_doc_commands is not None
7878
else TexTemplate.default_post_doc_commands
7979
)
80-
self._rebuild\(\)
80+
self._rebuild()
8181

8282
def _rebuild(self):
8383
""" Assembles a fully formed tex document (documentclass, preamble, body ...) and stores it as self.body """
@@ -109,7 +109,7 @@ def add_to_preamble(self, txt, prepend=False):
109109
self.preamble = txt + "\n" + self.preamble
110110
else:
111111
self.preamble += "\n" + txt
112-
self._rebuild\(\)
112+
self._rebuild()
113113

114114
def add_to_document(self, txt):
115115
"""Adds txt to the TeX template just after \\begin{document}, e.g. ``\\boldmath``
@@ -120,7 +120,7 @@ def add_to_document(self, txt):
120120
String containing the text to be added.
121121
"""
122122
self.post_doc_commands += "\n" + txt + "\n"
123-
self._rebuild\(\)
123+
self._rebuild()
124124

125125
def get_texcode_for_expression(self, expression):
126126
"""Inserts expression verbatim into TeX template.
@@ -166,7 +166,7 @@ def __init__(self, **kwargs):
166166
self.template_file = kwargs.pop("filename", "tex_template.tex")
167167
super().__init__(**kwargs)
168168

169-
def rebuild(self):
169+
def _rebuild(self):
170170
with open(self.template_file, "r") as infile:
171171
self.body = infile.read()
172172

0 commit comments

Comments
 (0)