python3 fix
svn: r22821
This commit is contained in:
parent
66166c2acc
commit
01a7fd6cf6
@ -306,7 +306,7 @@ class DictionaryDb(DbWriteBase, DbReadBase):
|
|||||||
pattern_match = re.match(r"(.*)%[0 ](\d+)[diu]$", id_pattern)
|
pattern_match = re.match(r"(.*)%[0 ](\d+)[diu]$", id_pattern)
|
||||||
if pattern_match:
|
if pattern_match:
|
||||||
str_prefix = pattern_match.group(1)
|
str_prefix = pattern_match.group(1)
|
||||||
nr_width = pattern_match.group(2)
|
nr_width = int(pattern_match.group(2))
|
||||||
def closure_func(gramps_id):
|
def closure_func(gramps_id):
|
||||||
if gramps_id and gramps_id.startswith(str_prefix):
|
if gramps_id and gramps_id.startswith(str_prefix):
|
||||||
id_number = gramps_id[len(str_prefix):]
|
id_number = gramps_id[len(str_prefix):]
|
||||||
|
Loading…
Reference in New Issue
Block a user