From d269c309fcb7a24f2deff89352919adbf5f002c3 Mon Sep 17 00:00:00 2001 From: Just van den Broecke Date: Sun, 11 Aug 2024 16:20:35 +0200 Subject: [PATCH] #388 fix regexp deprecation warning GfsPrepFilter --- stetlcomponents/gfspreparationfilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stetlcomponents/gfspreparationfilter.py b/stetlcomponents/gfspreparationfilter.py index f529d77f..d4219b68 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(b'Layer name: (\w+:)?(?P\w+).*?Feature Count: (?P[0-9]+)', re.S) + pattern = re.compile(r'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])