summaryrefslogtreecommitdiffstats
path: root/src/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.py')
-rw-r--r--src/parser.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parser.py b/src/parser.py
index 4836bdf..d2b4ce7 100644
--- a/src/parser.py
+++ b/src/parser.py
@@ -24,15 +24,13 @@ FRONT
The cards are represented in dictionary entries of the form:
-id: (front_text, back_text)
+id: card.Card
"""
from pathlib import Path
-from collections import namedtuple
from enum import Enum
from typing import TextIO, Iterator
-
-Card = namedtuple('Card', ['front', 'back'])
+from card import Card
def _getCard(front_lines: list[str], back_lines: list[str]) -> tuple[int, Card]:
front_text = "".join(front_lines).strip()