From ccb5eaf4ebfa1f9ce99fa74f7a4d388632310526 Mon Sep 17 00:00:00 2001 From: AlessioNar Date: Mon, 23 Dec 2024 17:59:22 +0100 Subject: [PATCH] Made the method names of AKN uniform with the FMX --- tulit/parsers/akomantoso.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tulit/parsers/akomantoso.py b/tulit/parsers/akomantoso.py index f7d9a65..f0c2274 100644 --- a/tulit/parsers/akomantoso.py +++ b/tulit/parsers/akomantoso.py @@ -259,11 +259,11 @@ def get_preamble(self): - 'citations': List of citations - 'recitals': List of recitals """ - self.citations = self.get_preamble_citations() - self.formula = self.get_preamble_formula() - self.recitals = self.get_preamble_recitals() + self.citations = self.get_citations() + self.formula = self.get_formula() + self.recitals = self.get_recitals() - def get_preamble_formula(self): + def get_formula(self): """ Extracts formula text from the preamble. @@ -281,7 +281,7 @@ def get_preamble_formula(self): formula_text = ' '.join(p.text.strip() for p in formula.findall('akn:p', namespaces=self.namespaces) if p.text) return formula_text - def get_preamble_citations(self): + def get_citations(self): """ Extracts citations from the preamble. @@ -310,7 +310,7 @@ def get_preamble_citations(self): return citations - def get_preamble_recitals(self): + def get_recitals(self): """ Extracts recitals from the preamble.