Skip to content

Commit

Permalink
fixup: nitpicks Python code fixed using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
autoruff committed Jan 30, 2025
1 parent be8db47 commit 8cb998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugwise/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def get_vendor_name(module: etree, model_data: ModuleData) -> ModuleData:

def parse_escapes(text):
"""Helper-function for get_vendor_name()."""
fixed_escapes = re.sub(r'(?<!\\)(\\\\)*("|\\$)', r'\\\1\2', text)
fixed_escapes = re.sub(r'(?<!\\)(\\\\)*("|\\$)', r"\\\1\2", text)
return ast.literal_eval(f'"{fixed_escapes}"')


Expand Down

0 comments on commit 8cb998a

Please sign in to comment.