remove warning / use r"" for regexp string"

This commit is contained in:
2026-02-06 12:11:15 +11:00
parent 85a53c8c5f
commit 0a0a7b321b

View File

@@ -304,7 +304,7 @@ def get_growth_value( bt, bill_type ):
finance_data = get_finance_data()
return finance_data['Inflation']
else:
match = re.match("flat-(\d+)", which )
match = re.match(r"flat-(\d+)", which )
if match:
return int(match.group(1))
else: