Skip to content

Commit 04a73b4

Browse files
committed
Fix a few bugs in the build.
1 parent 4ae2fd2 commit 04a73b4

File tree

6 files changed

+12
-7491
lines changed

6 files changed

+12
-7491
lines changed

lib/matplotlib/fontconfig_pattern.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@
2121

2222
from __future__ import print_function
2323
import re, sys
24-
if sys.version_info[0] >= 3:
25-
from matplotlib.pyparsing_py3 import Literal, ZeroOrMore, \
26-
Optional, Regex, StringEnd, ParseException, Suppress
27-
else:
28-
from matplotlib.pyparsing_py2 import Literal, ZeroOrMore, \
29-
Optional, Regex, StringEnd, ParseException, Suppress
24+
from pyparsing import Literal, ZeroOrMore, \
25+
Optional, Regex, StringEnd, ParseException, Suppress
3026

3127
family_punc = r'\\\-:,'
3228
family_unescape = re.compile(r'\\([%s])' % family_punc).sub

lib/matplotlib/mathtext.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@
3434
from numpy import inf, isinf
3535
import numpy as np
3636

37-
if sys.version_info[0] >= 3:
38-
from matplotlib.pyparsing_py3 import Combine, Group, Optional, Forward, \
39-
Literal, OneOrMore, ZeroOrMore, ParseException, Empty, \
40-
ParseResults, Suppress, oneOf, StringEnd, ParseFatalException, \
41-
FollowedBy, Regex, ParserElement, QuotedString, ParseBaseException
42-
else:
43-
from matplotlib.pyparsing_py2 import Combine, Group, Optional, Forward, \
44-
Literal, OneOrMore, ZeroOrMore, ParseException, Empty, \
45-
ParseResults, Suppress, oneOf, StringEnd, ParseFatalException, \
46-
FollowedBy, Regex, ParserElement, QuotedString, ParseBaseException
37+
from pyparsing import Combine, Group, Optional, Forward, \
38+
Literal, OneOrMore, ZeroOrMore, ParseException, Empty, \
39+
ParseResults, Suppress, oneOf, StringEnd, ParseFatalException, \
40+
FollowedBy, Regex, ParserElement, QuotedString, ParseBaseException
4741

4842
# Enable packrat parsing
4943
ParserElement.enablePackrat()

0 commit comments

Comments
 (0)