Skip to content

Commit 1dba422

Browse files
committed
lint: fix violations
1 parent 518cab8 commit 1dba422

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/update_versions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
import re
2+
23
from playwright import sync_playwright
34

45
with sync_playwright() as p:
56
r = open("README.md", "r")
67
text = r.read()
78
for browser_type in [p.chromium, p.firefox, p.webkit]:
8-
rx = re.compile(r"<!-- GEN:" + browser_type.name + r"-version -->([^<]+)<!-- GEN:stop -->")
9+
rx = re.compile(
10+
r"<!-- GEN:" + browser_type.name + r"-version -->([^<]+)<!-- GEN:stop -->"
11+
)
912
browser = browser_type.launch()
10-
text = rx.sub(f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->", text)
13+
text = rx.sub(
14+
f"<!-- GEN:{browser_type.name}-version -->{browser.version}<!-- GEN:stop -->",
15+
text,
16+
)
1117
browser.close()
1218

1319
w = open("README.md", "w")

0 commit comments

Comments
 (0)