Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f780312

Browse files
devRDksunden
andauthored
Fix pyparsing version check
Co-authored-by: Kyle Sunden <[email protected]>
1 parent c6a1bf5 commit f780312

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
@@ -28,7 +28,7 @@
2828
from .ft2font import FT2Image, KERNING_DEFAULT
2929

3030
from pyparsing import __version__ as pyparsing_version
31-
if pyparsing_version < '3.0.0':
31+
if tuple(int(x) for x in pyparsing_version.split(".")) < (3, 0, 0):
3232
from pyparsing import nestedExpr as nested_expr
3333
else:
3434
from pyparsing import nested_expr

0 commit comments

Comments
 (0)