Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Python 3.6 and different encodings #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MatthiasJobst
Copy link

Hi,
in an effort to use the python library I updated the code to Python 3.6. Further I made some modifications to handle different date and file formats or encodings.

Your work has been a great help and I hope those changes help more people.

Regards,
Matthias

Gedcom takes an iterator of lines instead of a file directly. This allows to apply encoding.
Date is a file that delivers a splitDate function to handle the special cases encountered when splitting dates.
Added Query class to split concerns between storage and query.
Copy link
Member

@bean5 bean5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only saw 1 thing that seemed out of place here and requesting changes as a result.

Note: I did not run the code.

CC @zappala

marriage=1857,marriage_start=1850,marriage_end=1860,
family_surname='Nicotra',family_given='Maria',
criteria='surname=N:birthrange=1820-1840:deathrange=1900-1910'):
birth=1968,birth_start=1940,birth_end=1960,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MatthiasJobst These changes seem to be opinionated and outside the scope of upgrading to a newer version of Python. A quick, cursory review of the other changes did not stand out as out of scope to me.

CC: @zappala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants