8000 mathtext: Make pyparsing cache reset more explicit · matplotlib/matplotlib@2bd74a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bd74a6

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 d0eca17 commit 2bd74a6

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
@@ -2139,7 +2139,7 @@ def parse(self, s, fonts_object, fontsize, dpi):
21392139
self._in_subscript_or_superscript = False
21402140
# prevent operator spacing from leaking into a new expression
21412141
self._em_width_cache = {}
2142-
self._expression.resetCache()
2142+
ParserElement.resetCache()
21432143
return result[0]
21442144

21452145
def get_state(self):

0 commit comments

Comments
 (0)
0