|
34 | 34 | from numpy import inf, isinf |
35 | 35 | import numpy as np |
36 | 36 |
|
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 |
47 | 41 |
|
48 | 42 | # Enable packrat parsing |
49 | 43 | ParserElement.enablePackrat() |
|
0 commit comments