Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/cpython/src/patches/15-pip-no-mmap.patch
1067 views
1
--- native/lib/python3.11/site-packages/pip/_vendor/cachecontrol/filewrapper.py 2022-11-15 00:45:19
2
+++ wasm/lib/python3.11/site-packages/pip/_vendor/cachecontrol/filewrapper.py 2022-11-15 13:11:56
3
@@ -70,6 +70,7 @@
4
# a view directly into the filesystem's memory cache, so it
5
# doesn't result in duplicate memory use.
6
self.__buf.seek(0, 0)
7
+ return self.__buf.read()
8
result = memoryview(
9
mmap.mmap(self.__buf.fileno(), 0, access=mmap.ACCESS_READ)
10
)
11
12