There was an error while loading. Please reload this page.
1 parent 3a8f4fe commit 4aa917cCopy full SHA for 4aa917c
1 file changed
Lib/platform.py
@@ -651,12 +651,8 @@ def architecture(executable=sys.executable, bits='', linkage=''):
651
# else is given as default.
652
if not bits:
653
import struct
654
- try:
655
- size = struct.calcsize('P')
656
- except struct.error:
657
- # Older installations can only query longs
658
- size = struct.calcsize('l')
659
- bits = str(size*8) + 'bit'
+ size = struct.calcsize('P')
+ bits = str(size * 8) + 'bit'
660
661
# Get data from the 'file' system command
662
if executable:
0 commit comments