Skip to content

Commit

Permalink
lint common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixthrush committed Sep 23, 2024
1 parent e68bed4 commit c2e2e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aniworld/common/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,16 +494,16 @@ def check_avx2_support() -> bool:

try:
cpu_info = subprocess.run(
['wmic', 'cpu', 'get', 'Caption, Architecture, DataWidth, Manufacturer, ProcessorType, Status'],
['wmic', 'cpu', 'get',
'Caption, Architecture, DataWidth, Manufacturer, ProcessorType, Status'],
capture_output=True, text=True, check=True
)
logging.debug("CPU Info: %s", cpu_info.stdout)
if 'avx2' in cpu_info.stdout.lower():
logging.info("AVX2 is supported.")
return True
else:
logging.info("AVX2 is not supported.")
return False
logging.info("AVX2 is not supported.")
return False
except subprocess.CalledProcessError as e:
logging.error("Error checking AVX2 support: %s", e)
return False
Expand Down

0 comments on commit c2e2e44

Please sign in to comment.