summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-05-08 14:10:11 (GMT)
committerGitHub <noreply@github.com>2022-05-08 14:10:11 (GMT)
commit3680ebed7f3e529d01996dd0318601f9f0d02b4b (patch)
tree7889885b7ce3089f5ce5d02d88e7a55518644aae /Mac
parentc826867b7c1bb69639290d8df0f850ec3f9a6c72 (diff)
downloadcpython-3680ebed7f3e529d01996dd0318601f9f0d02b4b.zip
cpython-3680ebed7f3e529d01996dd0318601f9f0d02b4b.tar.gz
cpython-3680ebed7f3e529d01996dd0318601f9f0d02b4b.tar.bz2
bpo-44712: Replace "type(literal)" with corresponding builtin types (GH-27294)
I suppose it is a remnants of very old code written when str, int, list, dict, etc were functions and not classes.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/build-installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 91e2dd6..b5bffaf 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -1351,7 +1351,7 @@ def buildPython():
build_time_vars = l_dict['build_time_vars']
vars = {}
for k, v in build_time_vars.items():
- if type(v) == type(''):
+ if isinstance(v, str):
for p in (include_path, lib_path):
v = v.replace(' ' + p, '')
v = v.replace(p + ' ', '')