File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 32
32
OS_PATH = 'ntpath' if os .name == 'nt' else 'posixpath'
33
33
34
34
# These are modules that get frozen.
35
+ # If you're debugging new bytecode instructions,
36
+ # you can delete all sections except 'import system'.
37
+ # This also speeds up building somewhat.
35
38
TESTS_SECTION = 'Test module'
36
39
FROZEN = [
37
40
# See parse_frozen_spec() for the format.
45
48
# on a builtin zip file instead of a filesystem.
46
49
'zipimport' ,
47
50
]),
51
+ # (You can delete entries from here down to the end of the list.)
48
52
('stdlib - startup, without site (python -S)' , [
49
53
'abc' ,
50
54
'codecs' ,
80
84
'<__phello__.**.*>' ,
81
85
f'frozen_only : __hello_only__ = { FROZEN_ONLY } ' ,
82
86
]),
87
+ # (End of stuff you could delete.)
83
88
]
84
89
BOOTSTRAP = {
85
90
'importlib._bootstrap' ,
@@ -520,7 +525,7 @@ def regen_frozen(modules, frozen_modules: bool):
520
525
521
526
for lines in (bootstraplines , stdliblines , testlines ):
522
527
# TODO: Is this necessary any more?
523
- if not lines [0 ]:
528
+ if lines and not lines [0 ]:
524
529
del lines [0 ]
525
530
for i , line in enumerate (lines ):
526
531
if line :
You can’t perform that action at this time.
0 commit comments