Skip to content

Commit 3317c12

Browse files
fix: declare regex as raw string to avoid escape sequence deprecation (#4239)
1 parent e33f5bb commit 3317c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyaedt/application/Variables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def decompose_variable_value(variable_value, full_variables={}):
278278
float_value = float(variable_value)
279279
except ValueError:
280280
# search for a valid units string at the end of the variable_value
281-
loc = re.search("[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?", variable_value)
281+
loc = re.search(r"[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?", variable_value)
282282
units = _find_units_in_dependent_variables(variable_value, full_variables)
283283
if loc:
284284
loc_units = loc.span()[1]

0 commit comments

Comments
 (0)