summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2024-07-21 23:36:08 (GMT)
committerGitHub <noreply@github.com>2024-07-21 23:36:08 (GMT)
commit728432c8043edc07bb8a24b180a70778fcd35878 (patch)
treea4e8a99cee2c762935cb4d1d0a3e37d41f5ca86f /Mac
parent5901d92739c6e53668e3924eaff38e2e9eb95162 (diff)
downloadcpython-728432c8043edc07bb8a24b180a70778fcd35878.zip
cpython-728432c8043edc07bb8a24b180a70778fcd35878.tar.gz
cpython-728432c8043edc07bb8a24b180a70778fcd35878.tar.bz2
gh-120522: Apply App Store compliance patch during installation (#121947)
Adds a --with-app-store-compliance configuration option that patches out code known to be an issue with App Store review processes. This option is applied automatically on iOS, and optionally on macOS.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Resources/app-store-compliance.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/Mac/Resources/app-store-compliance.patch b/Mac/Resources/app-store-compliance.patch
new file mode 100644
index 0000000..f4b7dec
--- /dev/null
+++ b/Mac/Resources/app-store-compliance.patch
@@ -0,0 +1,29 @@
+diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
+index d6c83a75c1c..19ed4e01091 100644
+--- a/Lib/test/test_urlparse.py
++++ b/Lib/test/test_urlparse.py
+@@ -237,11 +237,6 @@ def test_roundtrips(self):
+ '','',''),
+ ('git+ssh', 'git@github.com','/user/project.git',
+ '', '')),
+- ('itms-services://?action=download-manifest&url=https://example.com/app',
+- ('itms-services', '', '', '',
+- 'action=download-manifest&url=https://example.com/app', ''),
+- ('itms-services', '', '',
+- 'action=download-manifest&url=https://example.com/app', '')),
+ ('+scheme:path/to/file',
+ ('', '', '+scheme:path/to/file', '', '', ''),
+ ('', '', '+scheme:path/to/file', '', '')),
+diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
+index 8f724f907d4..148caf742c9 100644
+--- a/Lib/urllib/parse.py
++++ b/Lib/urllib/parse.py
+@@ -59,7 +59,7 @@
+ 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
+ 'snews', 'prospero', 'rtsp', 'rtsps', 'rtspu', 'rsync',
+ 'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh',
+- 'ws', 'wss', 'itms-services']
++ 'ws', 'wss']
+
+ uses_params = ['', 'ftp', 'hdl', 'prospero', 'http', 'imap',
+ 'https', 'shttp', 'rtsp', 'rtsps', 'rtspu', 'sip',