diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 416deec71dc..bce840274dc 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -81,7 +81,7 @@ def get_platform (): # bootstrap problem. We use a dict to get an error # if some suspicious happens. bitness = {2147483647:"32bit", 9223372036854775807:"64bit"} - machine += ".%s" % bitness[sys.maxint] + machine += ".%s" % bitness[sys.maxsize] # fall through to standard osname-release-machine representation elif osname[:4] == "irix": # could be "irix64"! return "%s-%s" % (osname, release) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 3c157cf6ecd..e5c1e60d3e0 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -656,7 +656,7 @@ def get_platform(): # bootstrap problem. We use a dict to get an error # if some suspicious happens. bitness = {2147483647:"32bit", 9223372036854775807:"64bit"} - machine += ".%s" % bitness[sys.maxint] + machine += ".%s" % bitness[sys.maxsize] # fall through to standard osname-release-machine representation elif osname[:4] == "irix": # could be "irix64"! return "%s-%s" % (osname, release)