From 49ce74efe845a8a91939ff3990a5f233262d3e1f Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 6 Sep 2017 15:45:25 -0700 Subject: Remove all mention of Windows IA-64 support (GH-3389) It was mostly removed long ago. --- Lib/sysconfig.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'Lib/sysconfig.py') diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index fc3e03b2a2..8dfe1a714d 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -611,24 +611,14 @@ def get_platform(): Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) - win-ia64 (64bit Windows on Itanium) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. """ if os.name == 'nt': - # sniff sys.version for architecture. - prefix = " bit (" - i = sys.version.find(prefix) - if i == -1: - return sys.platform - j = sys.version.find(")", i) - look = sys.version[i+len(prefix):j].lower() - if look == 'amd64': + if 'amd64' in sys.version.lower(): return 'win-amd64' - if look == 'itanium': - return 'win-ia64' return sys.platform if os.name != "posix" or not hasattr(os, 'uname'): -- cgit v1.2.1