Skip to content

Commit dfed371

Browse files
committed
Reorganize imports
1 parent 239a2e9 commit dfed371

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pytest_bdd/parsers.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
"""Step parsers."""
22

33
from __future__ import absolute_import
4+
45
import re as base_re
5-
import warnings
66

77
import parse as base_parse
8-
from parse_type import cfparse as base_cfparse
9-
108
import six
9+
from parse_type import cfparse as base_cfparse
1110

1211
from .exceptions import InvalidStepParserError
1312

1413

15-
RE_TYPE = type(base_re.compile(''))
16-
17-
1814
class StepParser(object):
19-
2015
"""Parser of the individual step."""
2116

2217
def __init__(self, name):
@@ -35,7 +30,6 @@ def is_matching(self, name):
3530

3631

3732
class re(StepParser):
38-
3933
"""Regex step parser."""
4034

4135
def __init__(self, name, *args, **kwargs):
@@ -56,7 +50,6 @@ def is_matching(self, name):
5650

5751

5852
class parse(StepParser):
59-
6053
"""parse step parser."""
6154

6255
def __init__(self, name, *args, **kwargs):
@@ -80,7 +73,6 @@ def is_matching(self, name):
8073

8174

8275
class cfparse(parse):
83-
8476
"""cfparse step parser."""
8577

8678
def __init__(self, name, *args, **kwargs):
@@ -90,7 +82,6 @@ def __init__(self, name, *args, **kwargs):
9082

9183

9284
class string(StepParser):
93-
9485
"""Exact string step parser."""
9586

9687
def parse_arguments(self, name):

0 commit comments

Comments
 (0)