We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d9aea commit a0a62f8Copy full SHA for a0a62f8
src/finch/_base_client.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+import sys
4
import json
5
import time
6
import uuid
@@ -2011,7 +2012,6 @@ def get_python_version() -> str:
2011
2012
2013
def get_architecture() -> Arch:
2014
try:
- python_bitness, _ = platform.architecture()
2015
machine = platform.machine().lower()
2016
except Exception:
2017
return "unknown"
@@ -2027,7 +2027,7 @@ def get_architecture() -> Arch:
2027
return "x64"
2028
2029
# TODO: untested
2030
- if python_bitness == "32bit":
+ if sys.maxsize <= 2**32:
2031
return "x32"
2032
2033
if machine:
0 commit comments