Skip to content

Commit 11ede6e

Browse files
committed
Update code_utils.py
1 parent 5f7e11d commit 11ede6e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,6 @@ def validate_python_code(code: str) -> str:
268268
return code
269269

270270

271-
def has_any_async_functions(code: str) -> bool:
272-
try:
273-
module = ast.parse(code)
274-
except SyntaxError:
275-
return False
276-
return any(isinstance(node, ast.AsyncFunctionDef) for node in ast.walk(module))
277-
278-
279271
def cleanup_paths(paths: list[Path]) -> None:
280272
for path in paths:
281273
if path and path.exists():

0 commit comments

Comments
 (0)