Skip to content

Commit

Permalink
Changed broken links to GEDCOM format specification (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklas Reincke committed Jul 30, 2018
1 parent a807493 commit 6fe8ce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
A Python module for parsing, analyzing, and manipulating GEDCOM files.

GEDCOM files contain ancestry data. The parser is currently supporting
the GEDCOM 5.5 format which is detailed here: http://homepages.rootsweb.ancestry.com/~pmcbride/gedcom/55gctoc.htm
the GEDCOM 5.5 format which is detailed [here](https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf).

> **NOTE**: This module is currently under development and **should not be used in production**!
> The current development process can be tracked in the ["develop" branch](https://github.com/reynke/python-gedcom/tree/develop).
Expand Down
12 changes: 5 additions & 7 deletions gedcom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ def __parse_line(line_number, line, last_element):
regex_match = regex.match(gedcom_line_regex, line)

if regex_match is None:
error_message = ("Line `%d` of document violates GEDCOM format" % line_number +
"\nSee: http://homepages.rootsweb.ancestry.com/" +
"~pmcbride/gedcom/55gctoc.htm")
error_message = ("Line `%d` of document violates GEDCOM format 5.5" % line_number +
"\nSee: https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf")
raise SyntaxError(error_message)

line_parts = regex_match.groups()
Expand All @@ -272,10 +271,9 @@ def __parse_line(line_number, line, last_element):

# Check level: should never be more than one higher than previous line.
if level > last_element.get_level() + 1:
error_message = ("Line %d of document violates GEDCOM format" % line_number +
"\nLines must be no more than one level higher than " +
"previous line.\nSee: http://homepages.rootsweb." +
"ancestry.com/~pmcbride/gedcom/55gctoc.htm")
error_message = ("Line %d of document violates GEDCOM format 5.5" % line_number +
"\nLines must be no more than one level higher than previous line." +
"\nSee: https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf")
raise SyntaxError(error_message)

# Create element. Store in list and dict, create children and parents.
Expand Down

0 comments on commit 6fe8ce2

Please sign in to comment.