Skip to content

Commit

Permalink
#388 fix regexp deprecation warning GfsPrepFilter - use rb
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Aug 11, 2024
1 parent d269c30 commit d71a7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stetlcomponents/gfspreparationfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)
pattern = re.compile(rb'Layer name: (\w+:)?(?P<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)
matches = pattern.findall(output_ogrinfo)
feature_counts = dict([(m[1], int(m[2])) for m in matches])

Expand Down

0 comments on commit d71a7f4

Please sign in to comment.