From a28028f541c84818dc660f0f287c8d9b66d86062 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 13 Sep 2007 15:03:20 +0000 Subject: [PATCH] 2007-09-13 Don Allingham * src/GrampsDbUtils/_GedcomTokens.py: fix typo * src/GrampsDbUtils/_GedcomLex.py: fix typo svn: r8972 --- ChangeLog | 4 ++++ src/GrampsDbUtils/_GedcomLex.py | 2 +- src/GrampsDbUtils/_GedcomTokens.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02e2011e5..d23f98f0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-13 Don Allingham + * src/GrampsDbUtils/_GedcomTokens.py: fix typo + * src/GrampsDbUtils/_GedcomLex.py: fix typo + 2007-09-13 Benny Malengier * src/plugins/lineage.py: Final touches, loop detection diff --git a/src/GrampsDbUtils/_GedcomLex.py b/src/GrampsDbUtils/_GedcomLex.py index 9d7645906..2c4fdc3c3 100644 --- a/src/GrampsDbUtils/_GedcomLex.py +++ b/src/GrampsDbUtils/_GedcomLex.py @@ -365,7 +365,7 @@ class Reader: except: continue - token = tokens.get(line[1], GedcomTokens.TOKEN_UNKNOWN) + token = GedcomTokens.TOKENS.get(line[1], GedcomTokens.TOKEN_UNKNOWN) data = (level, token, line[2], line[1], self.index) func = self.func_map.get(data[1]) diff --git a/src/GrampsDbUtils/_GedcomTokens.py b/src/GrampsDbUtils/_GedcomTokens.py index 522a7fa16..46299feb4 100644 --- a/src/GrampsDbUtils/_GedcomTokens.py +++ b/src/GrampsDbUtils/_GedcomTokens.py @@ -140,7 +140,7 @@ TOKEN_LATI = 121 TOKEN_LONG = 122 TOKEN_FACT = 123 -tokens = { +TOKENS = { "HEAD" : TOKEN_HEAD, "MEDI" : TOKEN_MEDI, "HEADER" : TOKEN_HEAD, "TRAILER" : TOKEN_TRLR, "CALL_NUMBER" : TOKEN_CALN, "MEDIA" : TOKEN_MEDI,