Open kelle opened 3 months ago
This bit of convert_spt_string_to_code is giving deprecation warnings: invalid escape sequence \d
convert_spt_string_to_code
invalid escape sequence \d
if re.search("\d*\.?\d+", spt[i + 1 :]) is None: spt_code = spt_code else: spt_code += float(re.findall("\d*\.?\d+", spt[i + 1 :])[0])
I think we just need to add r in front of the string.
r
https://stackoverflow.com/questions/52335970/how-to-fix-string-deprecationwarning-invalid-escape-sequence-in-python
This bit of
convert_spt_string_to_code
is giving deprecation warnings:invalid escape sequence \d
I think we just need to add
r
in front of the string.https://stackoverflow.com/questions/52335970/how-to-fix-string-deprecationwarning-invalid-escape-sequence-in-python