From 01a7fd6cf6fa3397d8e772ea81d154a6334646fa Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 8 Aug 2013 13:02:04 +0000 Subject: [PATCH] python3 fix svn: r22821 --- 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 c5623c2f9..d61fab2c6 100644 --- a/gramps/gen/db/dictionary.py +++ b/gramps/gen/db/dictionary.py @@ -306,7 +306,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):]