From 4379a09fd3aaffb4a20c4ca5102dabf89f013cf2 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sat, 14 Sep 2019 20:20:22 +0200 Subject: [PATCH] Fix deprecation warning in withinarea rule --- gramps/gen/filters/rules/place/_withinarea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/filters/rules/place/_withinarea.py b/gramps/gen/filters/rules/place/_withinarea.py index 37c0f0b1c..3e7fe7844 100644 --- a/gramps/gen/filters/rules/place/_withinarea.py +++ b/gramps/gen/filters/rules/place/_withinarea.py @@ -87,7 +87,7 @@ class WithinArea(Rule): val = self.list[1] if isinstance(val, str): - val = re.sub("\D", "", val) # suppress all alpha characters + val = re.sub(r"\D", "", val) # suppress all alpha characters value = int(val) unit = int(self.list[2]) # earth perimeter in kilometers for latitude