Skip to content

Commit 302bb85

Browse files
committed
mathtext: Make pyparsing cache reset more explicit
Just as enabling the packrat cache occurs on the class overall, so does the reset.
1 parent e5c39cf commit 302bb85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ def parse(self, s, fonts_object, fontsize, dpi):
21332133
self._in_subscript_or_superscript = False
21342134
# prevent operator spacing from leaking into a new expression
21352135
self._em_width_cache = {}
2136-
self._expression.resetCache()
2136+
ParserElement.resetCache()
21372137
return result[0]
21382138

21392139
def get_state(self):

0 commit comments

Comments
 (0)