From 6d7781afac5019ccfca8eddf1456d5203e4f516b Mon Sep 17 00:00:00 2001 From: changeling Date: Wed, 9 Feb 2022 17:43:35 -0600 Subject: [PATCH] Add newline to class.gedcom and adjust imports Add newline before class definition in gedcom.py Add class import of Ordinance to gedcom.py Add constant import of ORDINANCES to gedcompy Remove unnecessary imports from getmyancestors.py --- getmyancestors/classes/gedcom.py | 16 ++++++++++++---- getmyancestors/getmyancestors.py | 13 +------------ 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/getmyancestors/classes/gedcom.py b/getmyancestors/classes/gedcom.py index 9d3a3c1..79761fe 100644 --- a/getmyancestors/classes/gedcom.py +++ b/getmyancestors/classes/gedcom.py @@ -1,6 +1,16 @@ # mergemyancestors classes -from getmyancestors.classes.tree import Indi, Fact, Fam, Memorie, Name, Note, Source -from getmyancestors.classes.constants import FACT_TYPES +from getmyancestors.classes.tree import ( + Indi, + Fact, + Fam, + Memorie, + Name, + Note, + Ordinance, + Source, +) +from getmyancestors.classes.constants import FACT_TYPES, ORDINANCES + class Gedcom: """Parse a GEDCOM file into a Tree""" @@ -311,5 +321,3 @@ class Gedcom: self.indi[num].fams_fid.add( (self.fam[fams].husb_fid, self.fam[fams].wife_fid) ) - - diff --git a/getmyancestors/getmyancestors.py b/getmyancestors/getmyancestors.py index c320176..7fbbdf3 100644 --- a/getmyancestors/getmyancestors.py +++ b/getmyancestors/getmyancestors.py @@ -11,19 +11,8 @@ import asyncio import argparse # local imports -import getmyancestors - -from getmyancestors.classes.tree import ( - Tree, -) +from getmyancestors.classes.tree import Tree from getmyancestors.classes.session import Session -from getmyancestors.classes.translation import translations -from getmyancestors.classes.constants import ( - FACT_TAGS, - FACT_EVEN, - MAX_PERSONS, - ORDINANCES_STATUS, -) def main(): -- 2.52.0