Changeset 1191:0db341c8c3b3 for src/mlx/update.py
- Timestamp:
- 05/30/25 17:37:04 (4 days ago)
- Branch:
- python3
- Phase:
- public
- Tags:
- tip
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/update.py
r977 r1191 12 12 import traceback 13 13 import io 14 import certifi15 14 16 15 if os.name=="nt": … … 233 232 f = None 234 233 try: 234 from .common import sslContext 235 235 236 updateManifest = Manifest() 236 237 reply = urllib.request.urlopen(updateURL + "/" + manifestName, 237 c afile = certifi.where())238 context = sslContext) 238 239 charset = reply.headers.get_content_charset() 239 240 content = reply.read().decode("utf-8" if charset is None else charset) … … 370 371 371 372 with open(targetFile, "wb") as fout: 373 from .common import sslContext 374 372 375 fin = urllib.request.urlopen(updateURL + "/" + path, 373 c afile = certifi.where())376 context = sslContext) 374 377 while True: 375 378 data = fin.read(256*1024)
Note:
See TracChangeset
for help on using the changeset viewer.