Skip to content

Commit 76209cd

Browse files
committed
Merge branch '3.11' of github.com:holzschu/cpython into 3.11
2 parents 010e3ba + 148528e commit 76209cd

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

Lib/mimetypes.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,21 @@
4545
"suffix_map", "encodings_map", "types_map", "common_types"
4646
]
4747

48-
knownfiles = [
49-
"/etc/mime.types",
50-
"/etc/httpd/mime.types", # Mac OS X
51-
"/etc/httpd/conf/mime.types", # Apache
52-
"/etc/apache/mime.types", # Apache 1
53-
"/etc/apache2/mime.types", # Apache 2
54-
"/usr/local/etc/httpd/conf/mime.types",
55-
"/usr/local/lib/netscape/mime.types",
56-
"/usr/local/etc/httpd/conf/mime.types", # Apache 1.2
57-
"/usr/local/etc/mime.types", # Apache 1.3
58-
]
48+
# This fixes an issue when running on the Arm macs with iPad compatibility mode. No change on iOS (all these files are unreadable anyway)
49+
if (sys.platform == "darwin"):
50+
knownfiles = []
51+
else:
52+
knownfiles = [
53+
"/etc/mime.types",
54+
"/etc/httpd/mime.types", # Mac OS X
55+
"/etc/httpd/conf/mime.types", # Apache
56+
"/etc/apache/mime.types", # Apache 1
57+
"/etc/apache2/mime.types", # Apache 2
58+
"/usr/local/etc/httpd/conf/mime.types",
59+
"/usr/local/lib/netscape/mime.types",
60+
"/usr/local/etc/httpd/conf/mime.types", # Apache 1.2
61+
"/usr/local/etc/mime.types", # Apache 1.3
62+
]
5963

6064
inited = False
6165
_db = None

buildForOSX.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ then
329329
if os.path.isfile(full_path):\
330330
return load_lib(full_path, cdecl)\
331331
# Not iOS case: test all possible suffixes and libraries:\
332-
/&' lib/Crypto/Util/_raw_api.py >> $PREFIX/make_install_osx.log 2>&1
332+
&/' lib/Crypto/Util/_raw_api.py >> $PREFIX/make_install_osx.log 2>&1
333333
fi
334334
rm -rf build/* >> $PREFIX/make_install_osx.log 2>&1
335335
env CC=clang CXX=clang++ CFLAGS="-I$PREFIX/ -I/usr/local/include/" LDFLAGS="-L$PREFIX/ -L/usr/local/lib" python3.11 setup.py build >> $PREFIX/make_install_osx.log 2>&1

packages/Fiona

Submodule Fiona updated from ef96fa3 to 19581c4

packages/matplotlib

Submodule matplotlib updated 1447 files

0 commit comments

Comments
 (0)