From 90558b6bede78d310755e303328745ad4c70c087 Mon Sep 17 00:00:00 2001 From: Alastair Weakley Date: Mon, 27 May 2024 16:16:32 +1000 Subject: [PATCH] Activate packrat #50 --- edtf/parser/grammar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edtf/parser/grammar.py b/edtf/parser/grammar.py index 9840bde..dc0f66d 100644 --- a/edtf/parser/grammar.py +++ b/edtf/parser/grammar.py @@ -3,9 +3,9 @@ # It's recommended to `enablePackrat()` immediately after importing pyparsing # https://github.com/pyparsing/pyparsing/wiki/Performance-Tips -# TODO: uncomment this once benchmark testing has run once in CI -# import pyparsing -# pyparsing.ParserElement.enablePackrat() +import pyparsing + +pyparsing.ParserElement.enablePackrat() from pyparsing import ( Combine,