1
1
"""Step parsers."""
2
2
3
3
from __future__ import absolute_import
4
+
4
5
import re as base_re
5
- import warnings
6
6
7
7
import parse as base_parse
8
- from parse_type import cfparse as base_cfparse
9
-
10
8
import six
9
+ from parse_type import cfparse as base_cfparse
11
10
12
11
from .exceptions import InvalidStepParserError
13
12
14
13
15
- RE_TYPE = type (base_re .compile ('' ))
16
-
17
-
18
14
class StepParser (object ):
19
-
20
15
"""Parser of the individual step."""
21
16
22
17
def __init__ (self , name ):
@@ -35,7 +30,6 @@ def is_matching(self, name):
35
30
36
31
37
32
class re (StepParser ):
38
-
39
33
"""Regex step parser."""
40
34
41
35
def __init__ (self , name , * args , ** kwargs ):
@@ -56,7 +50,6 @@ def is_matching(self, name):
56
50
57
51
58
52
class parse (StepParser ):
59
-
60
53
"""parse step parser."""
61
54
62
55
def __init__ (self , name , * args , ** kwargs ):
@@ -80,7 +73,6 @@ def is_matching(self, name):
80
73
81
74
82
75
class cfparse (parse ):
83
-
84
76
"""cfparse step parser."""
85
77
86
78
def __init__ (self , name , * args , ** kwargs ):
@@ -90,7 +82,6 @@ def __init__(self, name, *args, **kwargs):
90
82
91
83
92
84
class string (StepParser ):
93
-
94
85
"""Exact string step parser."""
95
86
96
87
def parse_arguments (self , name ):
0 commit comments