From b54199d7d071e2040d5824d2037be8ff9b3c5c6b Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 8 Aug 2013 13:01:57 +0000 Subject: [PATCH] python3 fix svn: r22820 --- gramps/gen/db/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/db/dictionary.py b/gramps/gen/db/dictionary.py index 8595e8b9f..92c46072f 100644 --- a/gramps/gen/db/dictionary.py +++ b/gramps/gen/db/dictionary.py @@ -291,7 +291,7 @@ class DictionaryDb(DbWriteBase, DbReadBase): pattern_match = re.match(r"(.*)%[0 ](\d+)[diu]$", id_pattern) if pattern_match: str_prefix = pattern_match.group(1) - nr_width = pattern_match.group(2) + nr_width = int(pattern_match.group(2)) def closure_func(gramps_id): if gramps_id and gramps_id.startswith(str_prefix): id_number = gramps_id[len(str_prefix):]