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 3232OS_PATH = 'ntpath' if os .name == 'nt' else 'posixpath'
3333
3434# 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.
3538TESTS_SECTION = 'Test module'
3639FROZEN = [
3740 # See parse_frozen_spec() for the format.
4548 # on a builtin zip file instead of a filesystem.
4649 'zipimport' ,
4750 ]),
51+ # (You can delete entries from here down to the end of the list.)
4852 ('stdlib - startup, without site (python -S)' , [
4953 'abc' ,
5054 'codecs' ,
8084 '<__phello__.**.*>' ,
8185 f'frozen_only : __hello_only__ = { FROZEN_ONLY } ' ,
8286 ]),
87+ # (End of stuff you could delete.)
8388]
8489BOOTSTRAP = {
8590 'importlib._bootstrap' ,
@@ -520,7 +525,7 @@ def regen_frozen(modules, frozen_modules: bool):
520525
521526 for lines in (bootstraplines , stdliblines , testlines ):
522527 # TODO: Is this necessary any more?
523- if not lines [0 ]:
528+ if lines and not lines [0 ]:
524529 del lines [0 ]
525530 for i , line in enumerate (lines ):
526531 if line :
You can’t perform that action at this time.
0 commit comments