Skip to content

Commit 6847cfd

Browse files
committed
Outvendor parse package
Parse is now updated and publish on PyPI. So lets take that version
1 parent 0524ed8 commit 6847cfd

File tree

6 files changed

+7
-1181
lines changed

6 files changed

+7
-1181
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7-
*Nothing here yet ...*
7+
### Fixed
8+
- Remove vendored `parse` package because [parse (#38)](https://github.com/r1chardj0n3s/parse/pull/38) is merged
89

910
## [v0.3.0]
1011

radish/matcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import re
88
from collections import namedtuple
99

10-
import radish.vendor.parse as parse
10+
import parse
1111

1212
from .argexpregistry import ArgExpRegistry
1313
from .exceptions import StepDefinitionNotFoundError, StepPatternError
@@ -32,7 +32,7 @@ def __init__(self, match):
3232

3333
def evaluate(self):
3434
"""Lazy and return evaluate the step group matches"""
35-
result = self.match.generate_result()
35+
result = self.match.evaluate_result()
3636
return result.fixed, result.named
3737

3838

@@ -89,7 +89,7 @@ def match_step(sentence, steps):
8989
except ValueError as e:
9090
raise StepPatternError(pattern, func.__name__, e)
9191

92-
match = compiled.search(sentence, generate_result=False)
92+
match = compiled.search(sentence, evaluate_result=False)
9393
argument_match = ParseStepArguments(match)
9494

9595
if match:

radish/stepregistry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import re
88
import inspect
9-
import radish.vendor.parse as parse
9+
import parse
1010
from singleton import singleton
1111

1212
from .exceptions import RadishError, SameStepError, StepRegexError

radish/vendor/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)