Skip to content

Commit d8e6d0b

Browse files
committed
fix SyntaxError: f-string: unmatched
1 parent 4d6ef8b commit d8e6d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SelfHealing/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def xpath_to_browser(xpath):
111111
if isinstance(part.attributes, list) and len(part.attributes) == 1:
112112
nth = re.findall(r'\[(\d+)\]', part.attributes[0])
113113
if nth:
114-
tag = cssify(f"{part.element.strip("()")}")
114+
tag = cssify(f'{part.element.strip("()")}')
115115
converted_parts.append(f"css={tag}")
116116
converted_parts.append(f"nth={int(nth[0])-1}")
117117
else:

0 commit comments

Comments
 (0)