From 6fe8ce2d08c75926b8932ddbecc32d9dc6e8ff5a Mon Sep 17 00:00:00 2001 From: Nicklas Reincke Date: Mon, 30 Jul 2018 17:00:27 +0200 Subject: [PATCH] Changed broken links to GEDCOM format specification (#2) --- README.md | 2 +- gedcom/__init__.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f636e8c..94cb476 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/gedcom/__init__.py b/gedcom/__init__.py index 9dd885e..f1d78d1 100644 --- a/gedcom/__init__.py +++ b/gedcom/__init__.py @@ -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() @@ -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.