diff --git a/stetlcomponents/gfspreparationfilter.py b/stetlcomponents/gfspreparationfilter.py index d4219b68..2682abd1 100644 --- a/stetlcomponents/gfspreparationfilter.py +++ b/stetlcomponents/gfspreparationfilter.py @@ -166,7 +166,7 @@ def execute_ogrinfo(self, gml_file): return result def parse_ogrinfo_output(self, output_ogrinfo): - pattern = re.compile(r'Layer name: (\w+:)?(?P\w+).*?Feature Count: (?P[0-9]+)', re.S) + pattern = re.compile(rb'Layer name: (\w+:)?(?P\w+).*?Feature Count: (?P[0-9]+)', re.S) matches = pattern.findall(output_ogrinfo) feature_counts = dict([(m[1], int(m[2])) for m in matches])