Skip to content

Commit 94ec9c2

Browse files
edtf.parser.grammar: decorate parse_edtf() to accept the old parseAll parameter
1 parent f60f5a9 commit 94ec9c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

edtf/parser/grammar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pyparsing
77
from edtf.appsettings import DEBUG_PYPARSING
8+
from edtf.util import remapparams
89

910
pyparsing.ParserElement.enablePackrat()
1011

@@ -343,6 +344,7 @@ def f(toks):
343344
)
344345

345346

347+
@remapparams(parseAll='parse_all')
346348
def parse_edtf(
347349
input_string: str,
348350
parse_all: bool = True,

0 commit comments

Comments
 (0)