This commit is contained in:
J. Nick Koston 2025-07-06 13:18:10 -05:00
parent 8677918157
commit 737e1284af
No known key found for this signature in database
2 changed files with 5 additions and 9 deletions

View File

@ -45,9 +45,6 @@ async def to_code(config):
def FILTER_SOURCE_FILES() -> list[str]:
"""Return list of socket implementation files that aren't selected by the user."""
if not hasattr(CORE, "config") or "socket" not in CORE.config:
return []
impl = CORE.config["socket"][CONF_IMPLEMENTATION]
# Build list of files to exclude based on selected implementation

View File

@ -553,11 +553,10 @@ def filter_source_files_from_platform(
return []
# Return files that should be excluded for current platform
excluded = []
for filename, platforms in files_map.items():
if current_platform_framework not in platforms:
excluded.append(filename)
return excluded
return [
filename
for filename, platforms in files_map.items()
if current_platform_framework not in platforms
]
return filter_source_files