Skip to content
Snippets Groups Projects
Commit 090b2dcb authored by Manuel Reis's avatar Manuel Reis
Browse files

Fix Syntax Warning "\d"

parent 4d6494ad
No related branches found
No related tags found
1 merge request!15Enabling S3 output feature
Pipeline #101844 passed
......@@ -78,7 +78,7 @@ class UnitConverter:
# try to identify those units and replace numeric values
# with a '^' (if numeric characters are present but no
# power sign is given - like in m s-1 -> m s^-1)
for i in re.findall("[-\d]+", unit[n]): # noqa: W605
for i in re.findall(r"[-\d]+", unit[n]): # noqa: W605
if "^" not in unit[n] or "**" in unit[n]:
uu = uu.replace(i, f"^{i}")
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment