Fix deprecation warning in withinarea rule

This commit is contained in:
SNoiraud 2019-09-14 20:20:22 +02:00 committed by Nick Hall
parent 0dc2be6dd5
commit 4379a09fd3

View File

@ -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