8000 Clean up pyparsing<3 code · matplotlib/matplotlib@94fbcb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94fbcb1

Browse files
committed
Clean up pyparsing<3 code
1 parent a0b0282 commit 94fbcb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@
3232
from .ft2font import FT2Font, FT2Image, Kerning, LoadFlags
3333

3434
from packaging.version import parse as parse_version
35-
from pyparsing import __version__ as pyparsing_version
36-
if parse_version(pyparsing_version).major < 3:
37-
from pyparsing import nested_expr as nested_expr
38-
else:
39-
from pyparsing import nested_expr
35+
from pyparsing import nested_expr
4036

4137
if T.TYPE_CHECKING:
4238
from collections.abc import Iterable

0 commit comments

Comments
 (0)
0