Skip to content

Commit bb5ac35

Browse files
committed
improve sleep translation
1 parent 9d34e52 commit bb5ac35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/synchro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def translate_async_sleeps(lines: list[str]) -> list[str]:
341341
sleeps = [line for line in lines if "asyncio.sleep" in line]
342342

343343
for line in sleeps:
344-
res = re.search(r"asyncio\.sleep\s*\(\s*(.*?)\s*\)", line)
344+
res = re.search(r"asyncio\.sleep\(\s*(.*?)\)", line)
345345
if res:
346346
old = res[0]
347347
index = lines.index(line)

0 commit comments

Comments
 (0)