Skip to content

Commit 4492300

Browse files
committed
Step 2: Save number of refs added by code object
Also changed recorded size to include the two new fields.
1 parent f17c602 commit 4492300

File tree

6 files changed

+5806
-5734
lines changed

6 files changed

+5806
-5734
lines changed

Lib/importlib/_bootstrap_external.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _write_atomic(path, data, mode=0o666):
372372
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
373373
# in PC/launcher.c must also be updated.
374374

375-
MAGIC_NUMBER = (9999).to_bytes(2, 'little') + b'\r\n'
375+
MAGIC_NUMBER = (9998).to_bytes(2, 'little') + b'\r\n'
376376
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
377377

378378
_PYCACHE = '__pycache__'

Python/frozen_hello.h

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/* Auto-generated by Programs/_freeze_importlib.c */
22
const unsigned char _Py_M__hello[] = {
3-
99,163,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
4-
0,2,0,0,0,0,0,0,0,115,16,0,0,0,100,0,
5-
90,0,101,1,100,1,131,1,1,0,100,2,83,0,41,3,
6-
84,122,12,72,101,108,108,111,32,119,111,114,108,100,33,78,
7-
41,2,90,11,105,110,105,116,105,97,108,105,122,101,100,218,
8-
5,112,114,105,110,116,169,0,243,0,0,0,0,122,14,60,
9-
102,114,111,122,101,110,32,104,101,108,108,111,62,218,8,60,
10-
109,111,100,117,108,101,62,114,3,0,0,0,1,0,0,0,
11-
243,4,0,0,0,4,0,12,1,114,4,0,0,0,115,16,
12-
0,0,0,15,19,1,12,1,6,7,21,1,22,1,22,1,
13-
22,1,22,114,2,0,0,0,
3+
99,171,0,0,0,5,0,0,0,0,0,0,0,0,0,0,
4+
0,0,0,0,0,2,0,0,0,0,0,0,0,115,16,0,
5+
0,0,100,0,90,0,101,1,100,1,131,1,1,0,100,2,
6+
83,0,41,3,84,122,12,72,101,108,108,111,32,119,111,114,
7+
108,100,33,78,41,2,90,11,105,110,105,116,105,97,108,105,
8+
122,101,100,218,5,112,114,105,110,116,169,0,243,0,0,0,
9+
0,122,14,60,102,114,111,122,101,110,32,104,101,108,108,111,
10+
62,218,8,60,109,111,100,117,108,101,62,114,3,0,0,0,
11+
1,0,0,0,243,4,0,0,0,4,0,12,1,114,4,0,
12+
0,0,115,16,0,0,0,15,19,1,12,1,6,7,21,1,
13+
22,1,22,1,22,1,22,114,2,0,0,0,
1414
};

0 commit comments

Comments
 (0)