From 6e37753fb31364ba70ca95965bcdfe8c37f9ced1 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 28 Aug 2019 09:39:19 -0400 Subject: [PATCH] ledger_entry: Support NEWLINE tokens. Necessary to run on Python 3.7. --- import2ledger/hooks/ledger_entry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/import2ledger/hooks/ledger_entry.py b/import2ledger/hooks/ledger_entry.py index c4b1303..c470098 100644 --- a/import2ledger/hooks/ledger_entry.py +++ b/import2ledger/hooks/ledger_entry.py @@ -43,6 +43,7 @@ class TokenTransformer: yield (ttype, tvalue) transform_ENDMARKER = _noop_transformer + transform_NEWLINE = _noop_transformer def transform_ENCODING(self, ttype, tvalue): self.in_encoding = tvalue