Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions codeflash/languages/python/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import logging
import platform
from functools import lru_cache
from pathlib import Path
from typing import TYPE_CHECKING, Any

Expand Down Expand Up @@ -1360,12 +1359,10 @@ def generate_concolic_tests(
return function_to_concolic_tests, concolic_test_suite_code


@lru_cache(maxsize=1024)
def _compile_ok(source: str) -> bool:
# Keep behavior identical to the original: use compile() and only catch SyntaxError.
try:
compile(source, "<string>", "exec")
return True
except SyntaxError:
return False

Loading