Skip to content

Commit

Permalink
added raw string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelweinold committed Aug 21, 2024
1 parent c818fc7 commit d043047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bw2io/importers/exiobase3_hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def as_product(o):
a["unit"] = p["unit"]

# Clean names like 'Collection, purification and distribution of water (41)'
numeric_end = re.compile("\(\d\d\)$")
numeric_end = re.compile(r"\(\d\d\)$")

def clean_name(name):
suffix = numeric_end.findall(name)
Expand Down
2 changes: 1 addition & 1 deletion bw2io/strategies/simapro.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def replace_comma(match):

formula = formula.replace("^", "**")
if settings and settings.get("Decimal separator") == ",":
formula = re.sub("\d,\d", replace_comma, formula)
formula = re.sub(r"\d,\d", replace_comma, formula)
formula = fix_iff_formula(formula)
return formula

Expand Down

0 comments on commit d043047

Please sign in to comment.