Skip to content

Commit 4d9d070

Browse files
committed
pass
1 parent 064dd0a commit 4d9d070

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeflash/api/cfapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ def get_blocklisted_functions() -> dict[str, set[str]] | dict[str, Any]:
197197
logger.error(f"Error getting blocklisted functions: {e}", exc_info=True)
198198
return {}
199199

200-
return {Path(k).name: set(v.replace("()", "") for v in values) for k, values in content.items()}
200+
return {Path(k).name: {v.replace("()", "") for v in values} for k, values in content.items()}

codeflash/discovery/functions_to_optimize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ def filter_functions(
465465
path = Path(function.file_path).name
466466
if path in blocklist_funcs and function.function_name in blocklist_funcs[path]:
467467
functions.remove(function)
468-
console.print(f"blocklist: Skipping {function.function_name} in {path}")
468+
console.print([function.function_name, blocklist_funcs[path]])
469469
continue
470-
console.print(f"blocklist: Optimizing {function.function_name} in {path}")
470+
console.print(f"blocklist: Optimizing {function.function_name} in {path} because it is not blocklisted")
471471

472472
filtered_modified_functions[file_path] = functions
473473
functions_count += len(functions)

0 commit comments

Comments
 (0)