From f47891e2924e3c2087c479241682fef02cd90d94 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 15 Nov 2018 17:57:09 +0100 Subject: [PATCH] booleans not allowed as indeces any more --- processing/post/reLabel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/post/reLabel.py b/processing/post/reLabel.py index 753e1bc1e..e3a58b9c7 100755 --- a/processing/post/reLabel.py +++ b/processing/post/reLabel.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python # -*- coding: UTF-8 no BOM -*- import os,sys,re @@ -66,7 +66,7 @@ for name in filenames: for i,index in enumerate(indices): if index == -1: remarks.append('label "{}" not present...'.format(options.label[i])) else: - m = pattern[dimensions[i]>1].match(table.tags[index]) # isolate label name + m = pattern[int(dimensions[i]>1)].match(table.tags[index]) # isolate label name for j in range(dimensions[i]): table.tags[index+j] = table.tags[index+j].replace(m.group(2),options.substitute[i]) # replace name with substitute